A collection of discord bot codes for Solana marketplaces, DeFi, and more.
A simple code to notify/ping you when a token is live to swap. (DeFi)
All sales within the collection will be sent via Discord embed which monitors every 15 seconds or 15000 milliseconds.
- Visual Studio Code or any code editor
- Node
- Discord application
- DiscordJS
- Request
$ npm install discord.js
$ npm install request
Must have config.json
which utilizes your Discord bot token (DO NOT SHARE)
{
"token": "INSERT-TOKEN-HERE"
}
DiscordJupAgPinger.js
Replace 'test' with your desire channel name.
const channel = client.channels.cache.find(channel => channel.name === 'test'); //Replace with your discord channel name
Replace trackToken
to your desire token.
const trackToken = 'BWXrrYFhT7bMHmNBFoQFWdsSgA3yXoAnMhDK6Fn1eSEn' //Replace token you are looking for
MagicEdenCollectionActivity.js
Replace const collection
to your desire collection
const collection = 'solana_monkey_business'; //collection ending of link ie: https://magiceden.io/marketplace/solana_monkey_business
Replace 'test' with your desire channel name.
const channel = client.channels.cache.find(channel => channel.name === 'test'); //Replace with your discord channel name