An open-source, easy-to-use Python bot.
- /snipe command to send the last deleted message in a channel
- /settings command to customize the channels that /snipe can be used in and the roles that can use it
- Both SQL and JSON support for small-scale and larger-scale applications
First, download all files from this repository into a folder.
Next, open PowerShell and run the following command
pip install -r requirements.txt
This will install all the required packages.
In the same folder level as ''constants.py'', create a new file called .env
.
Inside the .env
file put the following
TOKEN = ""
DBENDPOINT = ""
DBUSER = ""
DBPASS = ""
DBNAME = ""
DBPORT = ""
Put your Discord bot token in the token variable, and if you are going to be using SQL, fill out the database information; otherwise, you can leave them as is.
Inside ''constants.py'', select the database mode you wish to use. (Defaults to JSON)
DATABASE_MODE = "JSON" # USE EITHER "SQL" or "JSON" ONLY.
In a PowerShell window, run the following command
py main.py
This should run the bot.
NOTE: If you get a CommandNotFoundException
try running
python main.py
Which one you use will depend on your PATH variables
There are many services that provide bot hosting, but personally, I recommend PebbleHost for your hosting needs. Alternatively, I can host the bot for you if you subscribe to my Ko-fi
- LightCreed Commissions Server
- Discord Developers Server
- Add me on Discord:
@heroescreed