aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/halloween/monstersurvey.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/seasons/halloween/monstersurvey.py')
-rw-r--r--bot/seasons/halloween/monstersurvey.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/bot/seasons/halloween/monstersurvey.py b/bot/seasons/halloween/monstersurvey.py
index 2ae98f6e..4e967cca 100644
--- a/bot/seasons/halloween/monstersurvey.py
+++ b/bot/seasons/halloween/monstersurvey.py
@@ -25,7 +25,6 @@ class MonsterSurvey(Cog):
def __init__(self, bot: Bot):
"""Initializes values for the bot to use within the voting commands."""
-
self.bot = bot
self.registry_location = os.path.join(os.getcwd(), 'bot', 'resources', 'halloween', 'monstersurvey.json')
with open(self.registry_location, 'r') as jason:
@@ -33,7 +32,6 @@ class MonsterSurvey(Cog):
def json_write(self):
"""Write voting results to a local JSON file."""
-
log.info("Saved Monster Survey Results")
with open(self.registry_location, 'w') as jason:
json.dump(self.voter_registry, jason, indent=2)
@@ -48,7 +46,6 @@ class MonsterSurvey(Cog):
:param monster: the string key of the json that represents a monster
:return: None
"""
-
vr = self.voter_registry
for m in vr.keys():
if id not in vr[m]['votes'] and m == monster:
@@ -59,7 +56,6 @@ class MonsterSurvey(Cog):
def get_name_by_leaderboard_index(self, n):
"""Return the monster at the specified leaderboard index."""
-
n = n - 1
vr = self.voter_registry
top = sorted(vr, key=lambda k: len(vr[k]['votes']), reverse=True)
@@ -72,7 +68,6 @@ class MonsterSurvey(Cog):
)
async def monster_group(self, ctx: Context):
"""The base voting command. If nothing is called, then it will return an embed."""
-
if ctx.invoked_subcommand is None:
async with ctx.typing():
default_embed = Embed(
@@ -107,7 +102,6 @@ class MonsterSurvey(Cog):
Displays a list of monsters that can be voted for if one is not specified.
"""
-
if name is None:
await ctx.invoke(self.monster_leaderboard)
return
@@ -161,7 +155,6 @@ class MonsterSurvey(Cog):
:param name:
:return:
"""
-
if name is None:
await ctx.invoke(self.monster_leaderboard)
return
@@ -198,7 +191,6 @@ class MonsterSurvey(Cog):
:param ctx:
:return:
"""
-
async with ctx.typing():
vr = self.voter_registry
top = sorted(vr, key=lambda k: len(vr[k]['votes']), reverse=True)
@@ -225,6 +217,5 @@ class MonsterSurvey(Cog):
def setup(bot):
"""Monster survey Cog load."""
-
bot.add_cog(MonsterSurvey(bot))
log.info("MonsterSurvey cog loaded")