def suckmydonut(self, ctx, user : discord.Member = None):
"""Suck My Donuts Beeyatch!"""
author = ctx.message.author
if not user:
with aiohttp.ClientSession() as session:
async with session.get("http://owned.com/media/_cache/adjusted/postblock/image/4/6/7/2/4672.jpg.png") as resp:
test = await resp.read()
with open("data/commands/Images/imgres.png", "wb") as f:
f.write(test)
await self.bot.say("{} says to:".format(author.mention))
await self.bot.upload("data/commands/Images/imgres.png")
else:
with aiohttp.ClientSession() as session:
async with session.get("http://owned.com/media/_cache/adjusted/postblock/image/4/6/7/2/4672.jpg.png") as resp:
test = await resp.read()
with open("data/commands/Images/imgres.png", "wb") as f:
f.write(test)
await self.bot.say("{} tells {} to:".format(author.mention, user.mention))
await self.bot.upload("data/commands/Images/imgres.png")
评论列表
文章目录