Giter VIP home page Giter VIP logo

crawler-discord-bot's Introduction

Crawler Discord Bot

Environment Variables

To run the Discord bot and configure deployment settings, you need to set the following environment variables:

DISCORD_BOT_TOKEN = "Nzk5Mjgx0NDc2NDU1OTYABS5g.2lmzlZv3vUaKPQi2wI"
DEPLOYMENT_ENV = "prod" # prod | beta
MONGODB_CONNECTION_URL = "mongodb connection url"
  • DISCORD_BOT_TOKEN: Your Discord bot token.
  • DEPLOYMENT_ENV: The environment where the bot will be deployed, should be either "beta" or "prod".
  • MONGODB_CONNECTION_URL: Your MongoDB connection URL.
  • COZE_PERSONAL_ACCESS_TOKEN: Your Coze personal access token.
  • COZE_BOT_ID: Your Coze bot id. (The number after the bot parameter is the bot ID. https://www.coze.com/space/73428668341****/bot/73428668*****)

Additionally, you need to create two environment files: .env.prod and .env.beta under the config directory with the following variables:

GUILD_IDS = 250892094615837590
ADMIN_IDS = 249790928704776560, 149890528604796669
  • GUILD_IDS: Comma-separated list of Discord guild (server) IDs where the bot will operate.
  • ADMIN_IDS: Comma-separated list of Discord user IDs who will have administrative access to the bot.

Deployment

To deploy the bot, ensure you have set up the environment variables and configured the appropriate environment files (config/.env.prod or config/.env.beta). Then, follow these steps:

  1. Install dependencies: pip install -r requirements.txt
  2. Run the project: python main.py

Usage

Once the bot is running and connected to Discord, you can interact with it using various commands. These commands can be customized based on your bot's functionality. Users with administrative access can manage the bot's settings and commands.

Contributing

If you'd like to contribute to the bot's development, feel free to fork this repository, make your changes, and submit a pull request. Please ensure your code follows the project's coding standards and includes appropriate documentation for any new features or changes.

License

This project is licensed under the MIT License.

crawler-discord-bot's People

Contributors

mirai1129 avatar liamokarca avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.