Epic cool discord bot!
- V1 - My first ever discord bot, written in Discord.js
- Then I stopped the project for like 2 years.
- V2 - Rewrite after making some other bots, this time using Discord-Akairo
- V3 - Rewrite using plain old Discord.js again so that I could add slash command support.
- Clone this repo.
- Create a file named
.env
and fill it out with these values:
DISCORD_TOKEN=123
TOP_GG_TOKEN=456
HYPIXEL_TOKEN=789
TESTING_GUILD_ID=10112
Note that every value except for the Top.GG token and testing guild id is required. If you don't know where to get the tokens, try to run the bot and it will tell you where to get the missing tokens.
If you supply a value for
TESTING_GUILD_ID
then the bot is considered to be in development mode, and slash commands will only be registered to that guild. If you don't provide a value for it, they'll be registered globally.
- Install dependencies
# If you don't have pnpm installed...
npm i -g pnpm
# Install dependencies
pnpm i
- Build
pnpm run build
- Set up database
pnpm run setup-database
- Register slash commands
pnpm run register
- Run bot
# With pnpm scripts
pnpm run start
# Or with pm2
pm2 start dist/src/sharder.js --name "POTATO V3.1"
Where is the website code?
Here.