https://github.com/divkix/cse412-class-project
Class Project for CSE412 - Discord Trivia Bot
https://github.com/divkix/cse412-class-project
Last synced: 9 months ago
JSON representation
Class Project for CSE412 - Discord Trivia Bot
- Host: GitHub
- URL: https://github.com/divkix/cse412-class-project
- Owner: Divkix
- Created: 2024-10-07T20:40:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-07T00:39:36.000Z (over 1 year ago)
- Last Synced: 2025-01-05T04:09:08.175Z (over 1 year ago)
- Language: Python
- Size: 150 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How to set up
### `config.json` file
There is [`config.json`](config.json) file where you can put the
needed things to edit.
Here is an explanation of what everything is:
| Variable | What it is |
| -------------------- | ---------------------------------------------- |
| BOT_PREFIX_HERE | The prefix you want to use for normal commands |
| BOT_INVITE_LINK_HERE | The link to invite the bot |
### `.env` file
Set up the following env variables:
`TOKEN` - This is the Bot token
`DBNAME` - This is the Database name
`DBUSER` - This is the Databse user (for example, "postgres")
`DBPASS` - This is the Database password
## How to start
To start the bot you simply need to launch, either in terminal (Linux, Mac & Windows), or in Command Prompt (
Windows)
.
Before running the bot you will need to install all the requirements with this command:
```
python -m pip install -r requirements.txt
```
After that you can start it with
```
python bot.py
```
## Further reading
https://www.writebots.com/discord-bot-token/
> **Note:** May need to replace `python` with `py`, `python3`, `python3.11`, etc. depending on what Python versions you have installed on the machine.