Click here to deploy!
npm run dev
will launch the bot locally, with hot reloading included.
There are a few other scripts provided:
start
: Starts up the bot without hot reloading; used for deployment.lint
: Lints the project with ESLint.test
: Runs all the tests! (no tests for now)
First, install the dependencies:
npm install
npm install -D
If you want your bot to only accept commands on a specific channel and also redirect commands there, you need to give it the Manage Messages
permission and create a channel which name includes bot-commands
.
For the bot to run properly, you need to create a .env
file and add these variables, laid out in the .env.sample
file:
DISCORD_API_TOKEN
: Your discord API token. See this guide on how to obtain one.MONGODB_URI
: Your MongoDB connection URI.GUILD_ID
: Your Discord server ID.POLLEN_ADMIN
: Your Pollen Admin ID.