misc fixes

This commit is contained in:
Helixu 2021-11-22 21:31:57 +00:00
parent 8ce21fad0e
commit ae31406805

10
bot.py
View file

@ -93,11 +93,6 @@ async def raccoon(ctx):
await ctx.send(json["fact"]) await ctx.send(json["fact"])
await ctx.send(json["image"]) await ctx.send(json["image"])
@bot.command(hidden=True)
@commands.check(is_ginlang)
async def restart(ctx):
await ctx.send("shutting down, beep boop.")
exit()
@bot.command(hidden=True) @bot.command(hidden=True)
@ -158,14 +153,15 @@ xfnw#1113
<https://cat.casa/~julia/> (shitfest memes API) <https://cat.casa/~julia/> (shitfest memes API)
TFTWPhoenix#9240 (I dont know, hes cool I guess.) TFTWPhoenix#9240 (I dont know, hes cool I guess.)
remi#9948 (also pretty cool ig) remi#9948 (also pretty cool ig)
Ecolipsy#0001
Foxtrot is open source! Find the code at <https://code.cat.casa/Helixu/Foxtrot> Foxtrot is open source! Find the code at <https://code.cat.casa/Helixu/Foxtrot>
""") """)
@bot.command(brief="random meme") @bot.command(brief="random meme")
async def meme(ctx): async def meme(ctx):
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
async with session.get('https://shitfest.net/api/random.php') as resp: async with session.get('https://api.shitfest.net/v2/random.php') as resp:
json = await resp.json() json = await resp.json()
await ctx.send(json["url"]) await ctx.send(json["mp4"])
@bot.command(brief='makes things gay') @bot.command(brief='makes things gay')