mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +00:00
Changed stdoutput to use channel names instead of IDs
This commit is contained in:
parent
b21d3f7a96
commit
6346e7c1f7
1 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ class Administration:
|
||||||
u.dump(u.tasks, 'cogs/tasks.pkl')
|
u.dump(u.tasks, 'cogs/tasks.pkl')
|
||||||
if not u.tasks['auto_del']:
|
if not u.tasks['auto_del']:
|
||||||
self.deleting = False
|
self.deleting = False
|
||||||
print('STOPPED : deleting #{}'.format(channel.id))
|
print('STOPPED : deleting #{}'.format(channel.name))
|
||||||
await channel.send('**Stopped queueing messages for deletion in** {}'.format(channel.mention), delete_after=5)
|
await channel.send('**Stopped queueing messages for deletion in** {}'.format(channel.mention), delete_after=5)
|
||||||
|
|
||||||
@cmds.command(name='autodelete', aliases=['autodel'])
|
@cmds.command(name='autodelete', aliases=['autodel'])
|
||||||
|
@ -164,7 +164,7 @@ class Administration:
|
||||||
if not self.deleting:
|
if not self.deleting:
|
||||||
self.bot.loop.create_task(self.delete())
|
self.bot.loop.create_task(self.delete())
|
||||||
self.deleting = True
|
self.deleting = True
|
||||||
print('AUTO-DELETING : #{}'.format(ctx.channel.id))
|
print('AUTO-DELETING : #{}'.format(ctx.channel.name))
|
||||||
await ctx.send('**Auto-deleting all messages in {}**'.format(ctx.channel.mention), delete_after=5)
|
await ctx.send('**Auto-deleting all messages in {}**'.format(ctx.channel.mention), delete_after=5)
|
||||||
else:
|
else:
|
||||||
raise exc.Exists
|
raise exc.Exists
|
||||||
|
|
Loading…
Reference in a new issue