config.json - sincetheflood/paladin GitHub Wiki

config.json is a JSON file where the bot's configuration is stored.

bot

  • clientId: The bot's client (user) ID. Required for registering the slash commands
  • guildId: ID of the server the bot will be moderating. Required for registering the slash commands
  • token: The bot's token. Required to do anything with the bot

channels

  • reactions
    • id: ID of the channel where reaction roles should be sent
  • scrapbook
    • id: ID of the channel where reaction roles should be sent
    • emoji: Emoji that should be used to scrapbook messages
    • minimumReactions: Minimum number of reactions required to send a message to the scrapbook a message
  • log
    • portal
      • id: ID of the channel where users joining and leaving the server should be logged
    • warn
      • id: ID of the channel where warning messages should be logged
    • kick
      • id: ID of the channel where kick messages should be logged
    • ban
      • id: ID of the channel where ban messages should be logged
    • unban
      • id: ID of the channel where unban messages should be logged
    • edit
      • id: ID of the channel where message edits should be sent
    • delete
      • id: ID of the channel where message deletions should be sent

badWords

  • lazy: Array containing a list of words that shouldn't be allowed as whole words
  • greedy: Array containing a list of words that shouldn't be allowed anywhere in messages

reactionRoles

Array containing reaction role group objects

  • name: Name of the reaction role group
  • customId: ID of the reaction role group. Must be all lowercase, with spaces replaced by underscores
  • roles: Array containing individual reaction role objects
    • id: ID of the role that should be added/removed
    • label: Label of the reaction role button
    • emoji
      • id: ID of a custom server emoji. Should be set to null if a normal emoji is being used
      • name: Name of a custom server emoji. Should be set to the emoji itself if a normal emoji is being used