Commit ddd159ed authored by Julien Deswaef's avatar Julien Deswaef
Browse files

Merge branch 'master' of 192.168.1.222:git/relearn

parents 375d7b33 8dcf6698
#The spanish bot repeats what it reads performing with its strong accent
import irc.bot
class HelloBot(irc.bot.SingleServerIRCBot):
......@@ -15,7 +17,7 @@ class HelloBot(irc.bot.SingleServerIRCBot):
def on_pubmsg(self, c, e):
# print e.target, e.source, e.arguments, e.type
m=e.arguments[0].lower()
b=m.replace('v','b')
b=m.replace('v','b').replace('th','z').replace('rr','rrr')
c.privmsg(self.channel,b)
if __name__ == "__main__":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment