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

113 lines
2.6 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]
# empty string to disable the message
2019-06-09 01:04:00 +02:00
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"
messageDeleted = "Your message was deleted because it contained a banned word or phrase."
2019-06-09 01:04:00 +02:00
2019-07-11 20:14:22 +02:00
# If this is enable, every new user will receive a welcome message.
# If the user has disabled their DMs, the fallbackMessage will be sent in the fallbackChannel instead.
# If no fallback channel or message is specified, no fallback will be sent.
[feature.welcome]
fallbackChannel = "555097559023222825"
fallbackMessage = "@@ I would like to greet you, but I can’t. :("
# This is a list of strings like [title1, content1, title2, content2, ...]
# Do not use empty strings to get empty headings or paragraphs. The discord API rejects those.
content = [
"Welcome to the Server" , "This is the content of the first paragraph",
"Second paragraph heading", "Second paragraph content",
"3rd", "aoisd",
"fourth", "asasd",
"5th", "asdasd"
]
[[command]]
2019-06-08 13:03:33 +02:00
trigger = "!ping"
response = "pong"
[[command]]
2019-06-08 13:03:33 +02:00
trigger = "somewhere"
response = "found it"
2019-06-08 21:14:57 +02:00
matchType = "CONTAINS"
[[command]]
trigger = "A.+B"
response = "regex matched"
matchType = "REGEX"
[[command]]
trigger = "!embed"
embed = [ "some embed heading", "your embed content" ]
[[command]]
trigger = "answer me"
# this will @mention the user who triggered the command,
# i.e. “@author there you go”
response = "@@ there you go"
[[command]]
2019-06-08 23:51:29 +02:00
trigger = "delet this"
[command.action]
delete = true
2019-06-08 23:51:29 +02:00
[[command]]
2019-06-09 01:04:00 +02:00
trigger = "!restricted"
response = "access granted"
[command.permissions]
2019-06-10 09:19:03 +02:00
hasOneOf = [
"452034011393425409",
"446668543816106004"
2019-06-09 01:04:00 +02:00
]
[[command]]
2019-06-10 09:19:03 +02:00
trigger = "!almostUnrestricted"
response = "access granted"
[command.permissions]
hasNoneOf = ["452034011393425409"]
2019-06-10 09:19:03 +02:00
[[command]]
trigger = "!private"
response = "some long response that you don’t want in public channels"
[command.permissions]
onlyDM = true
2019-06-09 18:41:51 +02:00
# redirect every message that starts with !redirect to channel 555097559023222825
[[command]]
2019-06-09 18:41:51 +02:00
trigger = "!redirect"
response = "redirected"
[command.action.redirect]
target = "testchannel"
2019-06-09 18:41:51 +02:00
# the same, but without the original username
[[command]]
2019-06-09 18:41:51 +02:00
trigger = "!anonRedirect"
response = "redirected"
[command.action.redirect]
target = "555097559023222825"
anonymous = true
[[command]]
trigger = "!assign"
[command.action.assign]
role = "new role"
[[command]]
trigger = "!debug"
feature = "debug"
[[command]]
trigger = "!welcome"
feature = "welcome"
[[command]]
trigger = "!help"
feature = "help"
[[command]]
trigger = "!getConfig"
feature = "getConfig"