summaryrefslogtreecommitdiffstats
path: root/Reaktor/config.json
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-12-16 18:19:49 +0100
committerlassulus <lassulus@googlemail.com>2013-12-16 18:19:49 +0100
commit884fb902e9936993e13fe87f46fcd0e1fc052499 (patch)
tree6c231e9ead22304ab659a1679b42ce5ebccaf524 /Reaktor/config.json
parent5f6ded8bcbc4700b4547c4d1285e71e270908b2f (diff)
Reaktor/IRC: use command patterns
Diffstat (limited to 'Reaktor/config.json')
-rw-r--r--Reaktor/config.json15
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" ] }
]
}
}