Skip to content

Configuring Discord Bot

Lewis L. Foster edited this page Apr 6, 2020 · 4 revisions

The flask web server configuration will look something like

"bot": {
    "token": "dghihgihrighvnirigr",
    "prefix": "f/",
    "playingstatus": "for files",
    "owner": {
      "id": "123456789",
      "name": "discord#1234"
    },
    "AuthUsers": [
      123456789,
      987654321
    ], 
    "webhook": {
      "url": "discord.webhook.whatever.the.hell.goes.here",
      "avatar_url": "webhook.avatar.link"
    },
    "Enabled": "True"
  }

in Config.json. Here you can set the bot token, prefix, status, owner ID and username, users that are permitted to run commands, webhook information and whether the bot is enabled or not.

token - String

This defines the Discord bot token to login to Discord with

prefix - String

This defines the prefix for Discord bot commands

playingstatus - String

This defines the "watching" status of the bot

owner

This defines the owner information for the bot

  • id - Defines the bot owner ID
  • username - Defines the bot owner username

AuthUsers - List of Integers

This defines the users authorized to use discord bot commands

Webhook -

This defines the Configuration for the web-hook for sending uploaded images to a discord channel

  • url - String This is the URL for the web-hook, please see here for instructions on creating a web-hook.
  • avatar_url - String This is the avatar URL of the web-hook, can be any image URL

Enabled - String

This enables or disables the bot functionality and also disables the web-hook functionality