diff options
author | lassulus <lassulus@googlemail.com> | 2013-12-16 18:19:49 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-12-16 18:19:49 +0100 |
commit | 884fb902e9936993e13fe87f46fcd0e1fc052499 (patch) | |
tree | 6c231e9ead22304ab659a1679b42ce5ebccaf524 /Reaktor/config.json | |
parent | 5f6ded8bcbc4700b4547c4d1285e71e270908b2f (diff) |
Reaktor/IRC: use command patterns
Diffstat (limited to 'Reaktor/config.json')
-rw-r--r-- | Reaktor/config.json | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Reaktor/config.json b/Reaktor/config.json index 0b032c60..7b84c55e 100644 --- a/Reaktor/config.json +++ b/Reaktor/config.json @@ -14,13 +14,14 @@ "#krebs" ], "commands": [ - { "pattern": "^{main.name}:\\s*caps\\s*$", "argv": [ "command/caps" ] }, - { "pattern": "^{main.name}:\\s*hello\\s*$", "argv": [ "command/hello" ] }, - { "pattern": "^{main.name}:\\s*reload\\s*$", "argv": [ "command/reload" ] }, - { "pattern": "^{main.name}:\\s*retard\\s*$", "argv": [ "command/retard" ] }, - { "pattern": "^{main.name}:\\s*rev\\s*$", "argv": [ "command/rev" ] }, - { "pattern": "^{main.name}:\\s*uptime\\s*$", "argv": [ "command/uptime" ] }, - { "pattern": "{main.name}", "argv": [ "command/say", "I'm famous" ] } + { "pattern": "^(?:asybot|\\*):\\s*caps\\s*$", "argv": [ "commands/caps" ] }, + { "pattern": "^(?:asybot|\\*):\\s*hello\\s*$", "argv": [ "commands/hello" ] }, + { "pattern": "^(?:asybot|\\*):\\s*reload\\s*$", "argv": [ "commands/reload" ] }, + { "pattern": "^(?:asybot|\\*):\\s*badcommand\\s*$", "argv": [ "commands/badcommand" ] }, + { "pattern": "^(?:asybot|\\*):\\s*rev\\s*$", "argv": [ "commands/rev" ] }, + { "pattern": "^(?:asybot|\\*):\\s*uptime\\s*$", "argv": [ "commands/uptime" ] }, + { "pattern": "^(?:asybot|\\*):\\s*nocommand\\s*$", "argv": [ "commands/nocommand" ] }, + { "pattern": "^.*\\basybot(?:\\b[^:].*)?$", "argv": [ "commands/say", "I'm famous" ] } ] } } |