diff options
author | 2018-11-20 02:19:36 +0100 | |
---|---|---|
committer | 2018-11-20 02:19:36 +0100 | |
commit | 42954e96c05ef4d81ac56e6fb59a30ccffa230e5 (patch) | |
tree | ad8a7d00a8c142d59724e4f5665547ab1bcd41d5 /bot/cogs/hacktober/monstersurvey.py | |
parent | Minor changes (diff) |
It should work now.
Diffstat (limited to 'bot/cogs/hacktober/monstersurvey.py')
-rw-r--r-- | bot/cogs/hacktober/monstersurvey.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/cogs/hacktober/monstersurvey.py b/bot/cogs/hacktober/monstersurvey.py index 9eafcadc..9f33e31b 100644 --- a/bot/cogs/hacktober/monstersurvey.py +++ b/bot/cogs/hacktober/monstersurvey.py @@ -25,7 +25,7 @@ class MonsterSurvey: 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', 'monstersurvey', 'monstersurvey.json') + self.registry_location = os.path.join(os.getcwd(), 'bot', 'resources', 'halloween', 'monstersurvey.json') with open(self.registry_location, 'r') as jason: self.voter_registry = json.load(jason) @@ -91,7 +91,7 @@ class MonsterSurvey: @monster_group.command( name='vote' ) - async def monster_vote(self, ctx: Context, name: Optional[Union[int, str]] = None): + async def monster_vote(self, ctx: Context, name = None): """Casts a vote for a particular monster, or displays a list of monsters that can be voted for if one is not given.""" if name is None: @@ -133,7 +133,7 @@ class MonsterSurvey: @monster_group.command( name='show' ) - async def monster_show(self, ctx: Context, name: Optional[Union[int, str]] = None): + async def monster_show(self, ctx: Context, name = None): """ Shows the named monster. If one is not named, it sends the default voting embed instead. :param ctx: |