document.addEventListener('DOMContentLoaded', function() { feather.replace(); // Sample bot data (in a real app, this would come from an API) const sampleBots = [ { id: 1, name: "Moderation Pro", description: "Advanced moderation bot with auto-moderation, logging, and customizable filters.", price: 25, cashapp: "$modbotdev", image: "http://static.photos/technology/320x240/1" }, { id: 2, name: "Music Maestro", description: "High quality music bot with Spotify integration and playlist management.", price: 15, cashapp: "$musiccoder", image: "http://static.photos/music/320x240/2" }, { id: 3, name: "Game Stats Tracker", description: "Tracks player statistics for popular games like Valorant and League of Legends.", price: 20, cashapp: "$gamestats", image: "http://static.photos/gaming/320x240/3" } ]; // Render bots to the marketplace const renderBots = (bots) => { const container = document.getElementById('bots-container'); container.innerHTML = ''; bots.forEach(bot => { const botCard = document.createElement('div'); botCard.className = 'bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition duration-300'; botCard.innerHTML = ` ${bot.name}

${bot.name}

${bot.description}

$${bot.price} Buy via Cash App
`; container.appendChild(botCard); }); }; // Initialize with sample bots renderBots(sampleBots); // Handle form submission document.getElementById('sell-form').addEventListener('submit', function(e) { e.preventDefault(); const botName = document.getElementById('bot-name').value; const botDescription = document.getElementById('bot-description').value; const botPrice = document.getElementById('bot-price').value; const cashappId = document.getElementById('cashapp-id').value; // In a real app, you would send this data to your backend alert(`Your bot "${botName}" has been listed for $${botPrice}! Buyers will pay you at ${cashappId}`); // Reset form this.reset(); }); });