amymainyc / QandAi-public

A discord bot that checks for previously answered questions using natural language processing and answers them (made with discord.py and spaCy). Made for open-source Sunday on the Slingshot Discord Server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🚀 Q&Ai

A discord bot that checks for commonly asked questions using natural language processing and answers them (made with discord.py and spaCy). Made for open-source sunday on the Slingshot Discord Server.

Invite

You can invite this bot to your server using this link!

Commands

Click to expand!

Use q!help for access the commands list.


Use q!invite to get the invite link for the bot.


Use q!addchannel/q!removechannel to add/remove a channel for the bot to watch.


Use q!addqa/q!removeqa to add/remove questions and answers.


Use q!viewqa to get a link to the questions/answers in the database.


Once you've added a channel and some questions, the bot will answer questions in that channel!

Hosting

This bot is hosted on Heroku and is free for everyone to use. However, if you'd like to run a version of this bot on your machine, follow the instructions below.

  • Open the "data/config.json" and replace the fields in indicated in [brackets].
  • Set up a firebase database and download the service account credentials to "data/firebase.json".
  • Run the following commands in your terminal.
> pip install -r requirements.txt 
> python3 bot.py

Changelog

v1.2 - 8/25/2021
  • Allow adding multiple channels.
  • Changed the prefix to q!
  • Minor bug fixes.
v1.1 - 5/22/2021
  • Expanded bot to work in different guilds.
  • Renamed !setchannel to !addchannel.
  • Added !help, !removechannel,!removeqa, and !viewqa.
  • Set up a firebase database.
  • Listed the bot on TopGG (awaiting approval so the link does not work yet).
v1.0 - 5/17/2021
  • Initial release!

About

A discord bot that checks for previously answered questions using natural language processing and answers them (made with discord.py and spaCy). Made for open-source Sunday on the Slingshot Discord Server.

License:MIT License


Languages

Language:Python 100.0%