
Untitled
By: a guest on
Aug 10th, 2012 | syntax:
None | size: 0.67 KB | hits: 6 | expires: Never
##Zeile 30ff
import types
import random
import re
##Zeile 75ff
def echo(self, irc, msg, args, text):
"""<text>
Returns the arguments given it. Uses our standard substitute on the
string(s) given to it; $nick (or $who), $randomNick, $randomInt,
$botnick, $channel, $user, $host, $today, $now, and $randomDate are all
handled appropriately.
"""
text = ircutils.standardSubstitute(irc, msg, text)
if (re.match("!.*",text) == None):
irc.reply(text, prefixNick=False)
else:
irc.reply("nein, mach ich nicht", prefixNick=True)
echo = wrap(echo, ['text'])