Skip to content

1.1 Discord Configs

Michael (Parker) Parker edited this page Feb 15, 2020 · 1 revision

bot example

config:
  token: "Get a token"
  game: "Half Life 3 Alpha"
  dm_response:
    response:
    - "Please message me in the main server channels"
    reaction:
    - "🍩"

server example

server_id: "example"

config:
  prefix: "."
  clear_commands: true ## default is true if not set
  webhooks:
    log: "" ## If you want logging to go to discord follow this https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks
  channels:
    log: "" ## for embed logging vs using webhooks

channel_groups:
  - channels: ## an array of channels. Can hold one or many.
    - "example-channelID-1"
    - "example-channelID-2"

    mentions:
      ping: ## bot gets pinged with no other text
        response:
          - ""
      mention: ## bot gets mention in a message that it doesn't match anything in
        response:
          - ""

    commands: ## an array of commands
      - command: help ## each command needs this layout or the config will fail to load.
        response:
        - "Hello, I am a bot created by `parkervcp` designed to respond to commands and keywords."
        reastion:
          - ""

      - command: help command
        response:
        - "You can add commands manually in the config file."
      
      - command: help keyword
        response:
        - "You can add keywords manually in the config file."

    keywords: ## an array of keywords
      - keyword: example ## each keyword needs this layout or the config will fail to load.
        response:
        - "This is an example keyword match"

      - keyword: hello
        response:
        - "This is an example keyword match"
        exact: true

    parsing:
      image:
        filetypes:
          - "png"
          - "jpg"

      paste:
        - name: pastebin
          url: "https://pastebin.com/"
          format: "&url&raw/&filename&"
        - name: hastebin
          url: "https://hastebin.com/"
          format: "&url&raw/&filename&"

permissions: ## discord permissions are per-server
  - group: admin ## server owners automatically get all permissions.
    users:
    - "userID"

  - group: mod
    roles:
    - "Community Moderator"

  - group: blasklist
    blacklisted: true
Clone this wiki locally