aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/monstersurvey.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-14 12:34:30 -0400
committerGravatar ToxicKidz <[email protected]>2021-05-14 12:34:30 -0400
commit92c33d625068b9b39564dbf4fb9f6c1102711955 (patch)
tree40ce3e18ff8df18cb09ca2c3b2c7f00fa7e5811a /bot/exts/halloween/monstersurvey.py
parentchore: Break up the HelpSession.build_pages method (diff)
chore: Refactor more code to follow our style guide
Diffstat (limited to 'bot/exts/halloween/monstersurvey.py')
-rw-r--r--bot/exts/halloween/monstersurvey.py23
1 files changed, 13 insertions, 10 deletions
diff --git a/bot/exts/halloween/monstersurvey.py b/bot/exts/halloween/monstersurvey.py
index 240a97db..96cda11e 100644
--- a/bot/exts/halloween/monstersurvey.py
+++ b/bot/exts/halloween/monstersurvey.py
@@ -71,7 +71,8 @@ class MonsterSurvey(Cog):
default_embed.add_field(
name=".monster show monster_name(optional)",
value="Show a specific monster. If none is listed, it will give you an error with valid choices.",
- inline=False)
+ inline=False
+ )
default_embed.add_field(
name=".monster vote monster_name",
value="Vote for a specific monster. You get one vote, but can change it at any time.",
@@ -182,15 +183,17 @@ class MonsterSurvey(Cog):
for rank, m in enumerate(top):
votes = len(vr[m]["votes"])
percentage = ((votes / total_votes) * 100) if total_votes > 0 else 0
- embed.add_field(name=f"{rank+1}. {vr[m]['full_name']}",
- value=(
- f"{votes} votes. {percentage:.1f}% of total votes.\n"
- f"Vote for this monster by typing "
- f"'.monster vote {m}'\n"
- f"Get more information on this monster by typing "
- f"'.monster show {m}'"
- ),
- inline=False)
+ embed.add_field(
+ name=f"{rank+1}. {vr[m]['full_name']}",
+ value=(
+ f"{votes} votes. {percentage:.1f}% of total votes.\n"
+ f"Vote for this monster by typing "
+ f"'.monster vote {m}'\n"
+ f"Get more information on this monster by typing "
+ f"'.monster show {m}'"
+ ),
+ inline=False
+ )
embed.set_footer(text="You can also vote by their rank number. '.monster vote {number}' ")