Hard fork of Zeppelin discord bot
Find a file
Dragory ca44746ae6 cases: fix cases without a reason not being posted
The fact that cases *with* a reason were being posted was actually an
unintended side effect of createCaseNote also posting the case after
creating the note. Had the issue with the cases not being posted not
existed, new cases with a reason would've been posted twice. This commit
changes this so createCaseNote doesn't post the case when used from
createCase, and fixes the actual case posting at the end of createCase.
2019-01-03 04:30:16 +02:00
src cases: fix cases without a reason not being posted 2019-01-03 04:30:16 +02:00
.editorconfig Initial commit in new repository 2018-07-01 03:35:51 +03:00
.gitignore Add build process for prod 2018-12-14 06:47:58 +02:00
.prettierrc prettier: increase max line width to 120 2018-08-18 13:24:13 +03:00
nodemon.json Add npm script for watching changes. Clear obsolete dependencies. 2018-07-07 14:27:54 +03:00
ormconfig.js ormconfig: fix slow cli commands; add db timeout 2018-12-15 16:29:38 +02:00
package-lock.json Update emoji-regex to 7.0.1 2018-12-15 21:16:17 +02:00
package.json Update emoji-regex to 7.0.1 2018-12-15 21:16:17 +02:00
README.md Various small fixes 2018-07-01 04:31:24 +03:00
tsconfig.json Add build process for prod 2018-12-14 06:47:58 +02:00
tslint.json tslint: allow bitwise operators 2018-12-15 16:31:50 +02: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']