1
0
Fork 0
mirror of synced 2024-06-29 19:50:25 +12:00

Corrected which channel's ID's are saved

This commit is contained in:
Phxntxm 2016-08-11 14:02:47 -05:00
parent 31459b8f18
commit 12f8fb3964

View file

@ -19,7 +19,9 @@ class Mod:
"""This command is used to set a channel as the server's 'notifications' channel """This command is used to set a channel as the server's 'notifications' channel
Any notifications (like someone going live on Twitch, or Picarto) will go to that channel""" Any notifications (like someone going live on Twitch, or Picarto) will go to that channel"""
server_alerts = config.getContent('server_alerts') or {} server_alerts = config.getContent('server_alerts') or {}
server_alerts[ctx.message.server.id] = ctx.message.channel.id server_alerts[ctx.message.server.id] = channel.id
await self.bot.say("I have just changed this server's 'notifications' channel"
"All notifications will now go to {}".format(channel))
@commands.command(pass_context=True, no_pm=True) @commands.command(pass_context=True, no_pm=True)
@checks.customPermsOrRole(kick_members=True) @checks.customPermsOrRole(kick_members=True)