def on_welcome(self, cxn, event): for req in ("membership", "tags", "commands"): cxn.cap("REQ", f":twitch.tv/{req}") cxn.join(self.CHANNEL) db.build() self.send_message("Now online.")
def marbles(bot, user, *args): # runs the script that drop the DB and makes a new one db.build() try: os.remove("./files/marbles.csv") except: pass bot.send_message("Hey all, game is now started, type !play to join the game.")
def on_welcome(self, cxn, event): """sends message to chat to confirm bot activation""" for req in ("membership", "tags", "commands"): cxn.cap("REQ", f":twitch.tv/{req}") cxn.join(self.CHANNEL) db.build() self.send_message("Now Online.")