This is a Discord bot written in Python that performs various functions, including sending random messages to users' DMs. The bot gets 5 random messages/emails from a textfile and sends it to users' DMs. A cooldown of 24hrs is also set so they can't abuse it.
- Python 3.7
- Discord.py library
- Sends 5 random messages to a user's DM.
- Cooldown system to prevent abuse.
- Checks for available stock of messages.
- Notifies the owner when stock is low.
To use this bot, you need to set up a settings.json
file with the required configurations. Refer to the script for more details.
- Clone this repository:
git clone <repository_url>
- Install dependencies:
pip install -r requirements.txt
- Configure the
settings.json
file. - Run the bot:
python bot.py
You need to configure the settings.json
file with your Discord bot token, role, and other settings.
You will also set the prefix and command name in this file.
!help
: Displays a list of available commands.!<COMMANDNAME>
: Sends 5 random messages to your DM if you have the required role.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to Discord.py for the Discord API wrapper.