1
0
mirror of https://github.com/miaowware/qrm2.git synced 2025-04-10 05:29:09 -04:00

fix file handler thingy

This commit is contained in:
Abigail Gold 2019-10-05 20:30:46 -04:00
parent 6ffcd7e9ed
commit 2dbe421be0
No known key found for this signature in database
GPG Key ID: 80A676456AB6B045

View File

@ -20,7 +20,8 @@ class HamCog(commands.Cog):
self.gs = bot.get_cog("GlobalSettings")
with open('resources/qcodes.json') as qcode_file:
self.qcodes = json.load(qcode_file)
self.WORDS = open('resources/words').read().lower().splitlines()
with open('resources/words') as words_file:
self.WORDS = words_file.read().lower().splitlines()
@commands.command(name="qcode", aliases=['q'])
async def _qcode_lookup(self, ctx, q : str):