Skip to content

Discord bot. A reminder & utilities bot for IDLE FARM.

License

Notifications You must be signed in to change notification settings

kilale/idle-helper

 
 

Repository files navigation

logo

IDLE Helper

License: MIT NodeJS

Discord bot. A reminder & utilities bot for IDLE FARM.


Guide to start the bot

  1. Install node.js

  2. Install pnpm if you haven't

    npm install -g pnpm
  3. Install dependencies

    pnpm install
    pnpm run build:shared
    pnpm run build:bot
  4. Copy .env.example to .env and fill in the required fields

    BOT_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
  5. Setup MongoDB and Redis

  6. Start bot for development

    # NODE_ENV=development
    pnpm run dev:bot 

    or for production

     # NODE_ENV=production
    pnpm run prod:bot

Support

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


License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Discord bot. A reminder & utilities bot for IDLE FARM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%