A simple discord bot which allows the management of questions and answers in discord servers akin to something like stackoverflow but while maintaing the minimalism of a normal text channel. Additionally the bot has an accompanying dashboard which enables people who do not use discord to also answer any questions asked via the bot.
- Make and modify a question
- Answer a question
- Database (mongodb) to keep track of questions and their statuses
- Accompanying dashboard to get an isolated view of just questions
- Ability to download and backup question db
- Markdown support for questions
- Improved system for incoming dashboard answers
- Latex support for questions
If you want to run the bot yourself you can follow these steps.
-
Clone the repo
git clone https://github.com/KaiErikNiermann/QandA-discordBot.git
-
Create a
.env
file with the following contents in the bots main directoryDB_CONNECT=<your-mongo-db-key>
-
Run the bot
npm start
You might need some preresequesites to get things going, so if you get any errors make sure you have nodejs and npm installed.
For ubuntu/debian you should to install nodejs and npm using the following commands, just replace <version-number>
with the correct version, for example 18.
curl -sL https://deb.nodesource.com/setup_<version-number>.x | sudo -E bash - &&
sudo apt-get install -y nodejs &&
npm install -g npm@latest
Also if you want to work with the docker container you will need docker, for the installation refer to
https://docs.docker.com/desktop/install/linux-install/