def processChannelMessage(self, m): if(m.modCommand=="pyhello"): m.reply("Hello from a python module!!!!") elif(m.modCommand=="poop"): parser = CommandParser(m) if(parser.hasNumber()): numPoops=int(parser.findNumber()) if(numPoops>30): m.reply("Too much poop") else: m.reply((Constants.PILE_OF_POO+" ")*numPoops) else: m.reply("You must tell me how much to poop")
def processChannelMessage(self, m): if (m.modCommand == "pyhello"): m.reply("Hello from a python module!!!!") elif (m.modCommand == "poop"): parser = CommandParser(m) if (parser.hasNumber()): numPoops = int(parser.findNumber()) if (numPoops > 30): m.reply("Too much poop") else: m.reply((Constants.PILE_OF_POO + " ") * numPoops) else: m.reply("You must tell me how much to poop")