Remove pending change (shouldn't have been commited)
This commit is contained in:
parent
a09452247e
commit
d5a5820983
|
@ -145,23 +145,19 @@ class Administration:
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@utils.custom_perms(kick_members=True)
|
@utils.custom_perms(kick_members=True)
|
||||||
async def notifications(self, ctx, channel: discord.TextChannel):
|
async def notifications(self, ctx, channel: discord.TextChannel):
|
||||||
"""This command is used to set a channel as the server's default '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 by default
|
Any notifications (like someone going live on Twitch, or Picarto) will go to that channel
|
||||||
This can be overridden with specific alerts command, such as `!picarto alerts #channel`
|
|
||||||
This command is just the default; the one used if there is no other one set.
|
|
||||||
|
|
||||||
EXAMPLE: !alerts #alerts
|
EXAMPLE: !alerts #alerts
|
||||||
RESULT: No more alerts spammed in #general!"""
|
RESULT: No more alerts spammed in #general!"""
|
||||||
entry = {
|
entry = {
|
||||||
'server_id': str(ctx.message.guild.id),
|
'server_id': str(ctx.message.guild.id),
|
||||||
'notifications': {
|
'notifications_channel': str(channel.id)
|
||||||
'default': str(channel.id)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.bot.db.save('server_settings', entry)
|
self.bot.db.save('server_settings', entry)
|
||||||
await ctx.send("I have just changed this server's default 'notifications' channel"
|
await ctx.send("I have just changed this server's 'notifications' channel"
|
||||||
"\nAll notifications will now default to `{}`".format(channel))
|
"\nAll notifications will now go to `{}`".format(channel))
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
|
|
Loading…
Reference in a new issue