示例#1
0
    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.")
示例#2
0
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.")
示例#3
0
    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.")