1
0
Fork 0
mirror of synced 2024-06-29 03:30:57 +12:00

Corrected syntax errors

This commit is contained in:
phxntxm 2016-07-28 18:16:42 -05:00
parent 187ee31fc8
commit 36ac88ac45

View file

@ -28,7 +28,7 @@ class Mod:
await self.bot.say("This channel is already registered as 'nsfw'!") await self.bot.say("This channel is already registered as 'nsfw'!")
else: else:
nsfw_channels.append(ctx.message.channel.id) nsfw_channels.append(ctx.message.channel.id)
config.saveContent('nsfw_channels', nsfw_channels): config.saveContent('nsfw_channels', nsfw_channels)
await self.bot.say("This channel has just been registered as 'nsfw'! Have fun you naughties ;)") await self.bot.say("This channel has just been registered as 'nsfw'! Have fun you naughties ;)")
@nsfw.command(name="remove", aliases=["delete"], pass_context=True, no_pm=True) @nsfw.command(name="remove", aliases=["delete"], pass_context=True, no_pm=True)
@ -40,7 +40,7 @@ class Mod:
await self.bot.say("This channel is not registered as a ''nsfw' channel!") await self.bot.say("This channel is not registered as a ''nsfw' channel!")
else: else:
nsfw_channels.remove(ctx.message.channel.id) nsfw_channels.remove(ctx.message.channel.id)
config.saveContent('nsfw_channels', nsfw_channels): config.saveContent('nsfw_channels', nsfw_channels)
await self.bot.say("This channel has just been unregistered as a nsfw channel") await self.bot.say("This channel has just been unregistered as a nsfw channel")
@commands.command(pass_context=True, no_pm=True) @commands.command(pass_context=True, no_pm=True)