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))