Discord bot. A reminder & utilities bot for IDLE FARM.
-
Install node.js
-
Install pnpm if you haven't
npm install -g pnpm
-
Install dependencies
pnpm install pnpm run build:shared pnpm run build:bot
-
Copy
.env.example
to.env
and fill in the required fieldsBOT_TOKEN= # Your bot token NODE_ENV= # development or production BOT_PREFIX= # Bot prefix MONGO_URI= # MongoDB URI e.g. mongodb://localhost:27017/ MONGO_DB_NAME= # MongoDB database name e.g. epic_helper REDIS_URL= # Redis URL TOTAL_CLUSTERS= # Total number of shards TOTAL_SHARDS= # Total number of shards DEV_PREFIX= # (Optional) Dev prefix, for dev only commands DEVS_ID= # (Optional) Devs' ID, separated by commas, only whitelisted users can use dev commands SENTRY_DSN= # (Optional) Sentry DSN, if you want to use Sentry for error tracking PATREON_CAMPAIGN_ID= # (Optional) Patreon campaign ID PATREON_ACCESS_TOKEN= # (Optional) Patreon access token PATREON_WEBHOOK_TOKEN= # (Optional) Patreon webhook token API_PORT= # (Optional) API port, for receiving webhooks from Patreon CONTENTFUL_SPACE_ID= # (Optional) Contentful space ID, sources of commands in bot help CONTENTFUL_ACCESS_TOKEN= # (Optional) Contentful access token
-
Setup MongoDB and Redis
-
Start bot for development
# NODE_ENV=development pnpm run dev:bot
or for production
# NODE_ENV=production pnpm run prod:bot
Consider to star this repository if you find this bot useful. If you have any questions or need help, feel free to join our Discord server
This project is licensed under the MIT License - see the LICENSE file for details.