1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
This commit is contained in:
Steffo 2018-08-28 15:49:29 +02:00
parent 27c4338dab
commit 0fd45cca6f
2 changed files with 2 additions and 2 deletions

View file

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

View file

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