Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Class Project for CSE412 - Discord Trivia Bot

Notifications You must be signed in to change notification settings

Divkix/CSE412-Class-Project

Folders and files

NameName
Last commit message
Last commit date
Dec 7, 2024
Dec 7, 2024
Dec 6, 2024
Dec 7, 2024
Nov 1, 2024
Dec 7, 2024
Dec 5, 2024
Dec 7, 2024
Nov 21, 2024
Dec 7, 2024
Dec 6, 2024
Dec 5, 2024
Dec 5, 2024
Dec 6, 2024

Repository files navigation

How to set up

config.json file

There is 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.

About

Class Project for CSE412 - Discord Trivia Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published