Commit 7cde1231 authored by cath's avatar cath
Browse files

updated version The spanish bot repeats what it reads performing with its strong accent

parent a531794c
#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