mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +00:00
WIP del_response setting (command toggle)
This commit is contained in:
parent
70ec1bdb9c
commit
7d9f9d9718
1 changed files with 10 additions and 0 deletions
|
@ -197,3 +197,13 @@ class Administration:
|
||||||
del u.settings['prefixes'][ctx.guild.id]
|
del u.settings['prefixes'][ctx.guild.id]
|
||||||
|
|
||||||
await ctx.send(f'**Prefix set to:** `{"` or `".join(prefixes if ctx.guild.id in u.settings["prefixes"] else u.config["prefix"])}`')
|
await ctx.send(f'**Prefix set to:** `{"` or `".join(prefixes if ctx.guild.id in u.settings["prefixes"] else u.config["prefix"])}`')
|
||||||
|
|
||||||
|
@settings.command(name='deleteresponses', aliases=['delresps', 'delresp'])
|
||||||
|
async def _settings_deleteresponses(self, ctx):
|
||||||
|
if ctx.guild.id not in u.settings['del_resp']:
|
||||||
|
u.settings['del_resp'].append(ctx.guild.id)
|
||||||
|
else:
|
||||||
|
u.settings['del_resp'].remove(ctx.guild.id)
|
||||||
|
u.dump(u.settings, 'settings.pkl')
|
||||||
|
|
||||||
|
await ctx.send(f'**Delete command responses:** `{ctx.guild.id in u.settings["del_resp"]}`')
|
||||||
|
|
Loading…
Reference in a new issue