discord-kagebot/src/main/resources/config.toml

54 lines
1.2 KiB
TOML
Raw Normal View History

2019-06-08 11:07:52 +02:00
[system]
serverId = "356414885292277771"
2019-06-09 18:41:51 +02:00
color = "#1793d0"
2019-06-08 11:07:52 +02:00
2019-06-09 01:04:00 +02:00
[localization]
permissionDenied = "You do not have permission to use this command."
2019-06-09 18:41:51 +02:00
# results in <name> says <message>
redirectedMessage = "says"
2019-06-09 01:04:00 +02:00
2019-06-08 13:03:33 +02:00
[[commands]]
trigger = "!ping"
response = "pong"
[[commands]]
trigger = "somewhere"
response = "found it"
2019-06-08 21:14:57 +02:00
matchType = "CONTAINS"
[[commands]]
trigger = "A.+B"
response = "regex matched"
matchType = "REGEX"
[[commands]]
trigger = "answer me"
# this will @mention the user who triggered the command,
# i.e. “@author there you go”
response = "@@ there you go"
2019-06-08 23:51:29 +02:00
[[commands]]
trigger = "delet this"
2019-06-09 18:41:51 +02:00
actions = { delete = true }
2019-06-08 23:51:29 +02:00
2019-06-09 01:04:00 +02:00
[[commands]]
trigger = "!restricted"
response = "access granted"
# a user needs *one of* these roles to trigger the command
neededRoles = [
452034011393425409,
446668543816106004
]
2019-06-09 18:41:51 +02:00
# redirect every message that starts with !redirect to channel 555097559023222825
2019-06-08 21:14:57 +02:00
[[commands]]
2019-06-09 18:41:51 +02:00
trigger = "!redirect"
response = "redirected"
actions = { redirect = { target = 555097559023222825 } }
# the same, but without the original username
[[commands]]
trigger = "!anonRedirect"
response = "redirected"
2019-06-10 08:18:44 +02:00
actions = { redirect = { target = 555097559023222825, anonymous = true } }