Skip to content

siobh9/dsa-mod-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSA Validation Bot

To connect this bot to your Discord server with the necessary permissions, you'll have to have

  1. Created an application on Discord
  2. Categorized it as a bot
  3. Gone to this URL to authorize your bot on the server(s) you want it: https://discord.com/oauth2/authorize?client_id=<BOT_CLIENT_ID>&permissions=<PERMISSIONS>&integration_type=0&scope=bot where

Requirements

Rename .example.env to .env and fill it in wither your Discord Bot Token you'd like to add the bot to.

To Run Locally

Before running the bot you will need to install all the requirements with this command:

python3 -m pip install -r requirements.txt

After that you can start it with

python3 dsa_bot.py

To Run on an Open Ocean Ubuntu 24.04 (LTS) x64 OS from scratch

The last command in here will start the bot in the background so that the bot doesn't stop when you close your terminal, you can see it by running ps and looking for the line that says python.

apt install python3-pip
apt install python3.12-venv
mkdir ~/.virtualenvs
python3 -m venv ~/.virtualenvs/botenv
source ~/.virtualenvs/botenv/bin/activate
pip install -r requirements.txt
nohup python3 dsa_bot.py &

Development

Use pipreqs, not pip freeze, to create requirements.txt.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published