Skip to content

edazpotato/POTATO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POTATO

Epic cool discord bot!

History

  • 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.

Running

  1. Clone this repo.
  2. 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.

  1. Install dependencies
# If you don't have pnpm installed...
npm i -g pnpm

# Install dependencies
pnpm i
  1. Build
pnpm run build
  1. Set up database
pnpm run setup-database
  1. Register slash commands
pnpm run register
  1. Run bot
# With pnpm scripts
pnpm run start

# Or with pm2
pm2 start dist/src/sharder.js --name "POTATO V3.1"

FAQ

Where is the website code?

Here.