Skip to content

A simple Python bot for sniping recently deleted messages

License

Notifications You must be signed in to change notification settings

heroescreed/Snipe-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kofi Link Discord

Snipe Bot

An open-source, easy-to-use Python bot.

Features

  • /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

How To Use

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

Where to host the bot

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

Support