1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Used the upload helper function instead of bot.send_file

This commit is contained in:
Phxntxm 2016-07-23 09:20:10 -05:00
parent f27e1a60cb
commit 5072bebec0

View file

@ -74,7 +74,7 @@ class Core:
os.chdir('/home/phxntx5/public_html/Bonfire/images')
f = glob.glob('doggo*')[random.randint(0, len(glob.glob('doggo*')) - 1)]
with open(f, 'rb') as f:
await self.bot.send_file(ctx.message.channel, f)
await self.bot.upload(f)
@commands.command()
@checks.customPermsOrRole("send_messages")