Repository for HatBot on the Hatventures Community Discord server.
HatBot is a custom made Discord bot exclusively for the Hatventures Community Discord server. It provides both entertainement features for all members and moderation tools for the staff.
It has been coded to be as modular as possible, with the possibility to add/remove or enable/disable features as easily as possible.
You are welcome and encouraged to create issues here, either for bug fixes or feature requests.
You can help contributing to HatBot by forking the repository and creating pull requests in the dev branch. Contributions can be in the form of bug fixes, code syntax improvement, and additions to the lines that HatBot can reply with (like when mentionned for example)
For more details check CONTRIBUTING.md.
This repository is provided for education purposes, and community contributions only. Please do not create personal instances of the bot with this code without explicit written permission from me (Snaptraks#2606 on Discord).
Nevertheless, to run the bot you will need Python 3.7.3 (anything up from 3.5 should work, but all is tested with 3.7.3) and the packages from requirements.txt.
With all this in mind, to run the bot locally and help with the development, you will need a few things. Assuming your Python environment is correctly set up:
- Create a bot account.
- Copy your secret token in a file named
config.pyunderhatbot_token(seeconfig.py.examplefor more details). The rest of the configuration file is not necessary to run the bot and should not prevent it from running. - Invite the bot to your server. I recommend creating a dedicated Discord server for this, so that you are 100% sure to have total control over it.
- Start the bot with
python HatBot.pyfrom a terminal (might work with other methods but it has not been tested). - Once the bot is on the server, you can enter commands and interact with it. If you modify a Cog, you can use:
!load cogs.Nameto load a new cog,!reload cogs.Nameto reload an already loaded cog!unload cogs.Nameto remove a cog from the bot