Skip to content

Discord bot to assist with moderation of the Mobiflight discord

License

Notifications You must be signed in to change notification settings

MobiFlight/mobiflight-discord-bot

Repository files navigation

Mobiflight Discord Bot

Discord bot to assist with moderation of the Mobiflight discord

Supported slash commands

Command Description
/wiki topic Shares a link to the wiki topic
/yt topic Shares a link to the YouTube video on that topic

Deploying

This repo is available as a Docker image at ghcr.io/neilenns/mobiflight-discord-bot:latest. A sample `docker-compose.yml`` file is located in the Docker folder.

The following environment variables must be set for the bot to work properly:

Environment variable Description
DISCORRD_CLIENT_ID The application ID for the bot from the Discord Developer Portal.
DISCORD_GUILD_ID The ID of the server the slash commands should be registered with.
DISCORD_TOKEN The public key for the bot from the Discord Developer Portal.
ENABLE_COMMANDS Enables registering the slash commands. Should probably always be set to true.
OLD_THREAD_AGE_IN_DAYS Threads older than this value will not get a closing message sent by the bot when the thread is marked solved.
SOLVED_TAG_NAME The name of the tag that indicates a thread is solved. Case insensitive.
WIKI_ITEMS_PATH Path to the JSON file with the /wiki command menu items.
YT_ITEMS_PATH Path to the JSON file with the /yt command menu items.

Typically the JSON files will be mounted to the Docker container via a volume. The docker-compose.yml file in the Docker folder shows how this is done.

About

Discord bot to assist with moderation of the Mobiflight discord

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •