1
0
Fork 0
mirror of synced 2024-06-02 02:34:32 +12:00

Changed up message when removing custom prefixes; stopped updating the cache for prefixes twice

This commit is contained in:
phxntxm 2016-10-12 16:52:36 -05:00
parent bef4d48946
commit f05e7a0089

View file

@ -315,14 +315,13 @@ class Mod:
if not await config.add_content('prefixes', entry, r_filter):
await config.update_content('prefixes', entry, r_filter)
# For now, cache is not fully implemented, however is needed for prefixes
# So we're going to manually trigger an update when this is ran
self.bot.loop.create_task(config.cache['prefixes'].update())
await self.bot.say(
"I have just updated the prefix for this server; you now need to call commands with `{0}`."
"For example, you can call this command again with {0}prefix".format(
prefix))
if prefix is None:
fmt = "I have just cleared your custom prefix, the default prefix will have to be used now"
else:
fmt = "I have just updated the prefix for this server; you now need to call commands with `{0}`."
"For example, you can call this command again with {0}prefix".format(prefix)
await self.bot.say(fmt)
@commands.command(pass_context=True, no_pm=True)
@checks.custom_perms(manage_messages=True)