Discord Question and Answer Bot
Installing this app adds two slash commands to your Discord server:
/help displays a list of questions that your bot can answer
/ask <question> searches for a question and provides an answer
It uses an Airtable base to store your bot's question and answer data.
The only thing you need to do before pressing install is to create
your own copy of the template base by
clicking here. After
you do that, just choose that same Airtable account and base when
prompted in the installation flow, as well as your Discord bot, and you're done!
When a user runs
/help, they'll see a list of potential questions they can ask:
And they can ask a question by running
/ask. It can do some basic
searching by keywords too!
The only setup required before installation is
clicking here to copy the starter Airtable base to your Airtable account.
We'll use it to store the questions and answers your bot can answer. Once you
have your own copy of the base, press Install above and select it when
prompted in the installation flow.
Adding and removing questions is simple! Your copy of the reference Airtable
base should look like this:
You can add rows with new questions and answers, delete rows, or change them
to your heart's content. Changes will be reflected immediately when you run
Managing the Commands
This bot will automatically attempt to create the
/ask commands in
the first guild your bot is installed in using code in the
functions/events/autocode/self/deployed.js endpoint in this project. If you
want to add these commands to other guilds, you can easily register them using the
Discord Slash Command Builder.
Link your Discord bot in Step 1 and you should see something like this:
From there, select the guild where you want to register the commands, and press
Save All. You can also modify the descriptions here, but if you modify
the command names, you'll need to make sure you update your project's event triggers as well.
If you have any questions or feedback, please join our community Discord
from the Docs tab in the top bar. You can also follow us on Twitter,