AnyCode Bot is a Discord bot designed for the AnyCode community and it serves a representative and information function.
Whenever a user joins or leaves the server, the bot will send a welcome or goodbye message to the specified text channel.
The bot can forward notifications of Discord messages to Messenger.
All bot commands start with '$'. Type $help
to get more infomation.
The bot is designed with easy development in mind. You'll find predefined variables for server roles and channels within the codebase, making it straightforward to customize and extend the bot's functionality. The bot also includes robust logging to help you track its activities.
- Clone this repository.
- Create a Virtual Environment
First, create a virtual environment to isolate the bot's dependencies. If you haven't already installed
virtualenv
, you can do so with pip:
pip install virtualenv
- Create a virtual environment in your project directory:
virtualenv .venv
- Install discord.py
pip install -U discord.py
- Install python-dotenv for environment variable management
pip install python-dotenv
- Configure the bot by adding 'DISCORD_API_TOKEN={token-string}' into .evn file. (Request for it on our discord server, on general text channel) Important note: Don't share this token with anyone.