def run(self, bot): marvin.say_hi(self) while True: self.spoken = False message = input("> ") if "exit" in message: print("Well that's rude. Goodbye") exit() bot_input = BotInput() bot_input.message = message bot_input.bot = bot bot_input.nick = self.nick marvin.process(bot_input, self)
def run(self, bot): self.user = str(self.get_user_by_name(self.nick)["id"]) marvin.say_hi(self) self._parse_stream(bot)