3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00
Zeppelin is a moderation bot for Discord, designed with large servers and reliability in mind.
Find a file
Dragory f77e70d4d2 fix: percentage signs in mod action reasons causing crashes
This is an issue with audit log reasons that are sent as an HTML header.
Eris tries to decodeURI these before sending them, which throws an error
if you have an invalid percent encoding in the reason (e.g. "100%").

See eris/issues/276 and RequestHandler.js#L74
2018-08-01 00:52:44 +03:00
migrations Add persist plugin 2018-07-30 23:35:44 +03:00
src fix: percentage signs in mod action reasons causing crashes 2018-08-01 00:52:44 +03:00
.editorconfig Initial commit in new repository 2018-07-01 03:35:51 +03:00
.gitignore Ignore a temp file 2018-07-31 18:08:10 +03:00
.prettierrc Change prettier line width from 80 to 100, reformat files 2018-07-12 01:45:26 +03:00
knexfile.js Fix DB timezone not being applied 2018-07-09 03:12:49 +03:00
nodemon.json Add npm script for watching changes. Clear obsolete dependencies. 2018-07-07 14:27:54 +03:00
package-lock.json Update Knub to 9.6.2 2018-07-31 19:37:18 +03:00
package.json Update Knub to 9.6.2 2018-07-31 19:37:18 +03:00
README.md Various small fixes 2018-07-01 04:31:24 +03:00
tsconfig.json Allow JSON TS imports, fix errors from enabling esModuleInterop (required for JSON imports) 2018-07-12 02:58:34 +03:00
tslint.json Initial commit in new repository 2018-07-01 03:35:51 +03:00

Config format example

Config files are currently located at config/<guildId>.yml (and config/global.yml for global plugins).

levels:
  50: "1234" # Mod role id
  100: "5678" # Admin role id

plugins:
  mod_plugin:
    config:
      kick_message: 'You have been kicked'
    permissions:
      kick: false
    overrides:
      - level: '>=50'
        permissions:
          kick: true
      - level: '>=100'
        config:
          kick_message: 'You have been kicked by an admin'
  spam:
    config:
      filter_words: ['heck']
    overrides:
      - channel: '1234'
        config:
          +filter_words: ['foo']
      - level: '>=50'
        config:
          -filter_words: ['heck']