Corrected error where server_alerts was not saved
This commit is contained in:
parent
880fa0e17b
commit
ca575cedab
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ class Mod:
|
||||||
server_alerts = config.get_content('server_alerts') or {}
|
server_alerts = config.get_content('server_alerts') or {}
|
||||||
# This will update/add the channel if an entry for this server exists or not
|
# This will update/add the channel if an entry for this server exists or not
|
||||||
server_alerts[ctx.message.server.id] = channel.id
|
server_alerts[ctx.message.server.id] = channel.id
|
||||||
|
config.save_content('server_alerts', server_alerts)
|
||||||
await self.bot.say("I have just changed this server's 'notifications' channel"
|
await self.bot.say("I have just changed this server's 'notifications' channel"
|
||||||
"\nAll notifications will now go to `{}`".format(channel))
|
"\nAll notifications will now go to `{}`".format(channel))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue