KaiErikNiermann / qa-discord-bot

Simple Q&A Discord Bot created to make asking questions a more streamlined and clear process

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Q&A Bot

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.

Current Features

  • 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

Future Features

  • Ability to download and backup question db
  • Markdown support for questions
  • Improved system for incoming dashboard answers
  • Latex support for questions

Setup

If you want to run the bot yourself you can follow these steps.

  1. Clone the repo

    git clone https://github.com/KaiErikNiermann/QandA-discordBot.git
    
  2. Create a .env file with the following contents in the bots main directory

    DB_CONNECT=<your-mongo-db-key>
    
  3. Run the bot

    npm start
    

prerequesites

You might need some preresequesites to get things going, so if you get any errors make sure you have nodejs and npm installed.

nodejs and npm

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

docker

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/

About

Simple Q&A Discord Bot created to make asking questions a more streamlined and clear process


Languages

Language:TypeScript 98.9%Language:Dockerfile 1.1%