From 2194bdd4b47a31606aadf53af1b258ace593adaf Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 18 Dec 2013 23:44:34 +0100 Subject: Reaktor: add respond to solve complexity in config --- commands/respond | 2 ++ config.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 commands/respond diff --git a/commands/respond b/commands/respond new file mode 100755 index 0000000..e23dc3e --- /dev/null +++ b/commands/respond @@ -0,0 +1,2 @@ +#!/bin/sh +printf '%s\n' "${_from}: $*" diff --git a/config.py b/config.py index ce86faa..0ae7681 100644 --- a/config.py +++ b/config.py @@ -30,7 +30,7 @@ commands = [ default_command('nocommand'), # command not found { 'pattern': '^(?:' + name + '|\\*):.*', - 'argv': [ 'commands/say', '{TODO:fromname}: you are made of stupid!' ] }, + 'argv': [ 'commands/respond','You are made of stupid!'] }, # "highlight" { 'pattern': '.*\\b' + name + '\\b.*', 'argv': [ 'commands/say', 'I\'m famous' ] } -- cgit v1.2.3