Skip to content

Commit dced9b6

Browse files
committed
Update memes.py
1 parent 348a2d8 commit dced9b6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cogs/memes.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import discord
55
import math
66
import random
7+
import aiohttp
78

89
from discord.ext import commands
910
from typing import TYPE_CHECKING
@@ -871,6 +872,17 @@ async def shootings(self, ctx: KurisuContext):
871872
"https://nintendohomebrew.com/assets/img/nhmemes/shooting2.jpg"]
872873
await self._meme(ctx, "", image_link=random.choice(shooting_list))
873874

875+
@commands.command(hidden=True, aliases=["naas", "nah", "nope"])
876+
@commands.cooldown(1, 10, commands.BucketType.user)
877+
async def no(self, ctx: KurisuContext):
878+
try:
879+
async with aiohttp.ClientSession() as session:
880+
async with session.get("https://no.nintendohomebrew.com/no") as resp:
881+
data = await resp.json()
882+
except Exception:
883+
return await ctx.send("no")
884+
885+
await ctx.send(data["reason"])
874886

875887
async def setup(bot):
876888
await bot.add_cog(Memes(bot))

0 commit comments

Comments
 (0)