From 93593fa55c259bc057f6516813f0ad2e0c30a1d9 Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 30 Nov 2017 22:03:01 +0100 Subject: [PATCH] Added neko commands... --- Porno.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Porno.py b/Porno.py index 1df9280..e821326 100644 --- a/Porno.py +++ b/Porno.py @@ -53,6 +53,26 @@ class Porno(object): print("No permission to delete message") yield from ctx.channel.send(ctx.author.mention + " Uit r/"+ randnsfw.display_name +": " + post.url) + + @commands.command(pass_context=True) + @asyncio.coroutine + def nya(self, ctx): + """ nya? """ + print(type(ctx.message.channel)) + try: + if(not ctx.message.channel.is_nsfw()): + yield from ctx.channel.send("Alleen toegestaan in een NSFW kanaal") + return + except: + print("borf") + meow = self.r.subreddit('cat_girls+NekoIRL+Nekomimi') + post = meow.random() + try: + yield from ctx.message.delete() + except: + print("No permission to delete message") + yield from ctx.channel.send(ctx.author.mention + " " + post.url) + @commands.command(pass_context=True) @asyncio.coroutine def gay(self, ctx):