Corrected the glob checking
This commit is contained in:
parent
20063b689d
commit
b8b923a7a9
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ class Core:
|
||||||
async def doggo(self, ctx):
|
async def doggo(self, ctx):
|
||||||
"""Use this to print a random doggo image.
|
"""Use this to print a random doggo image.
|
||||||
Doggo is love, doggo is life."""
|
Doggo is love, doggo is life."""
|
||||||
f = glob.glob('images/doggo*')[random.randint(0, len(glob.glob('doggo*')) - 1)]
|
f = glob.glob('images/doggo*')[random.randint(0, len(glob.glob('images/doggo*')) - 1)]
|
||||||
with open(f, 'rb') as f:
|
with open(f, 'rb') as f:
|
||||||
await self.bot.upload(f)
|
await self.bot.upload(f)
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ class Core:
|
||||||
async def snek(self, ctx):
|
async def snek(self, ctx):
|
||||||
"""Use this to print a random snek image.
|
"""Use this to print a random snek image.
|
||||||
Sneks are o3o"""
|
Sneks are o3o"""
|
||||||
f = glob.glob('images/snek*')[random.randint(0, len(glob.glob('snek*')) - 1)]
|
f = glob.glob('images/snek*')[random.randint(0, len(glob.glob('images/snek*')) - 1)]
|
||||||
with open(f, 'rb') as f:
|
with open(f, 'rb') as f:
|
||||||
await self.bot.upload(f)
|
await self.bot.upload(f)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue