File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 44import discord
55import math
66import random
7+ import aiohttp
78
89from discord .ext import commands
910from 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
875887async def setup (bot ):
876888 await bot .add_cog (Memes (bot ))
You can’t perform that action at this time.
0 commit comments