This is more of a personal project intended to be used in the Wabbajack community to run search queries and to answer questions in discord.
Follow this guide to get a Token for your Bot: https://docs.pycord.dev/en/stable/discord.html
When you invite the bot to your server make sure you use the OAuth2
tool to generate the proper invite link with the following settings:
DISCORD_BOT_TOKEN
Needs to be set to the bot tokenMDBOOK_NAME
Name of the mdBook you want to searchMDBOOK_HOME_URL
main url for your mdBookDISCORD_MAX_RESULTS
Max number of search results you want to be listed in the discord embed. I use4
because it looks better.
Docker-Compose.yaml:
services:
mdbook-search-and-support-discord-bot:
image: eziothedeadpoet/mdbook-search-and-support-discord-bot:latest
env_file:
- .env
- secrets.env
restart: unless-stopped
.env:
MDBOOK_NAME="Wabbajack Wiki"
MDBOOK_HOME_URL=https://wiki.wabbajack.org/
DISCORD_MAX_RESULTS=4
secrets.env (needs to be created):
DISCORD_BOT_TOKEN=COPY_TOKEN_HERE
- Restructure Code to work with Docker for easier Deployment
- Update Documentation (Instructions on how to set it up)
- Add feature to define autocomplete targets for search queries
- For easier repetition of queries that result in precise search results
- Tag-command that displays markdown files as embeds in Discord
- tags are stored in a .json or .yaml accessible over the internet (for example github)
[ {"dummy":"https://raw.files/dummy.md"} ]
dummy: https://raw.files/dummy.md
- the bot uses this file to offer autocomplete options and as the source for the markdown text to render
- advantage of this over similar tags offered by bots like dyno would be that everyone in a community can contribute as long as they have a github account
- tags are stored in a .json or .yaml accessible over the internet (for example github)