From 210e5b6f7f1d9136de5d7f014032cc6a5f984f91 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 7 Aug 2020 00:34:07 +0100 Subject: [PATCH] Updated Commentary --- settings.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/settings.py b/settings.py index 4de63bc6..de9d4724 100644 --- a/settings.py +++ b/settings.py @@ -159,17 +159,18 @@ async def storage_prefix_for_guild(pool, ctx, prefix): await ctx.send(f"**Guild prefix has been updated to `{prefix}`**") -# Method to store the cached prefixes def cache_prefix(guildid, prefix): + """Storing prefixes for the guild""" + enso_cache[guildid]["Prefix"] = prefix -# Deleting the key - value pair for guild def del_cache_prefix(guildid): + """Deleting the key - value pair for guild""" + del enso_cache[guildid]["Prefix"] -# def get_prefix_for_guild(guildid): """Get the prefix of the guild that the user is in"""