From 0fd45cca6f91427cff24c2332ae8969789e44c95 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 28 Aug 2018 15:49:29 +0200 Subject: [PATCH] 197 --- discordbot.py | 2 +- telegrambot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/discordbot.py b/discordbot.py index 68d5c109..e75f69ed 100644 --- a/discordbot.py +++ b/discordbot.py @@ -366,7 +366,7 @@ class RoyalDiscordBot(discord.Client): message = "" # Find all the channels for member in discord_members: - if member.voice.channel is not None: + if member.voice is not None: channel = members_in_channels.get(member.voice.channel.id) if channel is None: members_in_channels[member.voice.channel.id] = list() diff --git a/telegrambot.py b/telegrambot.py index 152ad3b1..f702d74a 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -510,7 +510,7 @@ def process(arg_discord_connection): u = Updater(config["Telegram"]["bot_token"]) u.dispatcher.add_handler(CommandHandler("register", cmd_register)) u.dispatcher.add_handler(CommandHandler("discord", cmd_discord)) - # u.dispatcher.add_handler(CommandHandler("cv", cmd_discord)) + u.dispatcher.add_handler(CommandHandler("cv", cmd_discord)) u.dispatcher.add_handler(CommandHandler("cast", cmd_cast)) u.dispatcher.add_handler(CommandHandler("color", cmd_color)) u.dispatcher.add_handler(CommandHandler("smecds", cmd_smecds))