From 6a72372de9c566172ba7549d70c1e23b41878dfb Mon Sep 17 00:00:00 2001 From: EliteDaMyth1337 <33662389+EliteDaMyth1337@users.noreply.github.com> Date: Wed, 15 Nov 2017 17:44:07 +0530 Subject: [PATCH 1/5] Add files via upload --- cogs/memes.py | 215 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 cogs/memes.py diff --git a/cogs/memes.py b/cogs/memes.py new file mode 100644 index 00000000..720a5a7a --- /dev/null +++ b/cogs/memes.py @@ -0,0 +1,215 @@ + +import discord +from discord.ext import commands +import asyncio +from sys import argv + +class Memes: + """ + Meme commands + """ + def __init__(self, bot): + self.bot = bot + print('Addon "{}" loaded'.format(self.__class__.__name__)) + + async def _meme(self, ctx, msg): + await ctx.send(msg) + + # list memes + @commands.command(name="listmemes") + async def _listmemes(self, ctx): + """List meme commands.""" + # this feels wrong... + funcs = dir(self) + msg = "```\n" + msg += ", ".join(func for func in funcs if func != "bot" and func[0] != "_") + msg += "```" + await self._meme(ctx, msg) + + # memes + @commands.command(hidden=True) + async def screams2(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/bh45fyL.png") + + @commands.command(hidden=True) + async def screams(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/j0Dkv2Z.png") + + @commands.command(hidden=True) + async def ehh(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/2SBC1Qo.jpg") + + @commands.command(hidden=True) + async def wat(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/bp2YRAf.png") + + @commands.command(hidden=True, name="no!!") + async def nope(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/OcDrUYO.png") + + @commands.command(hidden=True) + async def illyacup(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/GMRp1dj.jpg") + + @commands.command(hidden=True) + async def quivers(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/Aq5VISF.gifv") + + @commands.command(hidden=True) + async def nya(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/WKB08Iq.png") + + @commands.command(hidden=True, name="916253") + async def numbers(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/NukslEg.png") + + @commands.command(hidden=True) + async def thump(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/LZhDBkH.gifv") + + @commands.command(hidden=True) + async def rikkaeh(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/3Lg5jlA.png") + + @commands.command(hidden=True) + async def orz(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/LEey0Cd.png") + + @commands.command(hidden=True) + async def shotsfired(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/zf2XrNk.gifv") + + @commands.command(hidden=True) + async def thumbsup(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/2dll9My.png") + + @commands.command(hidden=True) + async def rip(self, ctx): + """Memes.""" + await self._meme(ctx, "Press F to pay respects.") + + @commands.command(hidden=True) + async def permabrocked(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/ARsOh3p.jpg") + + @commands.command(hidden=True) + async def lucina(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/tnWSXf7.png") + + @commands.command(hidden=True) + async def lucina2(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/ZPMveve.jpg") + + @commands.command(hidden=True) + async def thumbsup2(self, ctx): + """Memes.""" + await self._meme(ctx, "http://i.imgur.com/hki1IIs.gifv") + + # Cute commands :3 + @commands.command(hidden=True) + async def headpat(self, ctx): + """Cute""" + await self._meme(ctx, "http://i.imgur.com/7V6gIIW.jpg") + + @commands.command(hidden=True) + async def headpat2(self, ctx): + """Cute""" + await self._meme(ctx, "http://i.imgur.com/djhHX0n.gifv") + + @commands.command(hidden=True) + async def sudoku(self, ctx): + """Cute""" + await self._meme(ctx, "http://i.imgur.com/VHlIZRC.png") + + @commands.command(hidden=True) + async def rawr(self, ctx): + """Cute""" + await self._meme(ctx, "http://i.imgur.com/Bqw4OwQ.png") + + @commands.command(hidden=True) + async def baka(self, ctx): + """Cute""" + await self._meme(ctx, "http://i.imgur.com/OyjCHNe.png") + + @commands.command(hidden=True) + async def pantsu(self, ctx): + """Cute""" + await self._meme(ctx, "http://i.imgur.com/BoRZLTU.png") + + @commands.command(hidden=True) + async def animal(self, ctx): + """Cute""" + await self._meme(ctx, "http://i.imgur.com/Rhd6H8x.jpg") + + @commands.command(hidden=True) + async def rub(self, ctx): + """Cute""" + await self._meme(ctx, "http://i.imgur.com/DkxNtGK.gif") + + @commands.command(hidden=True) + async def spin(self, ctx): + """Cute""" + await self.bot.say("Illya is loading...") + await asyncio.sleep(5) + await self._meme(ctx, "http://i.imgur.com/Q7CECXA.gif") + + @commands.command(hidden=True) + async def luff(self, ctx): + """Cute""" + await self._meme(ctx, "http://i.imgur.com/8TKIixk.png") + + @commands.command(hidden=True) + async def fug(self, ctx): + """meme""" + await self._meme(ctx, "http://i.imgur.com/ZhTZtDa.png") + + @commands.command(hidden=True) + async def fug2(self, ctx): + """meme""" + await self._meme(ctx, "http://i.imgur.com/9LvnrBB.png") + + @commands.command(hidden=True) + async def walksin(self, ctx): + """meme""" + await self._meme(ctx, "http://i.imgur.com/xMfzlnU.jpg") + + @commands.command(hidden=True) + async def walksout(self, ctx): + """meme""" + await self._meme(ctx, "http://i.imgur.com/wIRkdud.jpg") + + @commands.command(hidden=True) + async def period(self, ctx): + """meme""" + await self._meme(ctx, "http://i.imgur.com/IGu4zGZ.jpg") + + @commands.command(hidden=True) + async def sadness(self, ctx): + """:c""" + await self._meme(ctx, "http://i.imgur.com/maRp8nB.png") + + @commands.command(hidden=True) + async def negativity(self, ctx): + """:c""" + await self._meme(ctx, "hhttp://i.imgur.com/1D5vHSk.png") + +# Load the extension +def setup(bot): + bot.add_cog(Memes(bot)) From 1f7e8b75abfffa5f0806fda803e9ffb67ff621b1 Mon Sep 17 00:00:00 2001 From: EliteDaMyth1337 <33662389+EliteDaMyth1337@users.noreply.github.com> Date: Thu, 16 Nov 2017 17:23:12 +0530 Subject: [PATCH 2/5] Delete memes.py --- cogs/memes.py | 215 -------------------------------------------------- 1 file changed, 215 deletions(-) delete mode 100644 cogs/memes.py diff --git a/cogs/memes.py b/cogs/memes.py deleted file mode 100644 index 720a5a7a..00000000 --- a/cogs/memes.py +++ /dev/null @@ -1,215 +0,0 @@ - -import discord -from discord.ext import commands -import asyncio -from sys import argv - -class Memes: - """ - Meme commands - """ - def __init__(self, bot): - self.bot = bot - print('Addon "{}" loaded'.format(self.__class__.__name__)) - - async def _meme(self, ctx, msg): - await ctx.send(msg) - - # list memes - @commands.command(name="listmemes") - async def _listmemes(self, ctx): - """List meme commands.""" - # this feels wrong... - funcs = dir(self) - msg = "```\n" - msg += ", ".join(func for func in funcs if func != "bot" and func[0] != "_") - msg += "```" - await self._meme(ctx, msg) - - # memes - @commands.command(hidden=True) - async def screams2(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/bh45fyL.png") - - @commands.command(hidden=True) - async def screams(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/j0Dkv2Z.png") - - @commands.command(hidden=True) - async def ehh(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/2SBC1Qo.jpg") - - @commands.command(hidden=True) - async def wat(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/bp2YRAf.png") - - @commands.command(hidden=True, name="no!!") - async def nope(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/OcDrUYO.png") - - @commands.command(hidden=True) - async def illyacup(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/GMRp1dj.jpg") - - @commands.command(hidden=True) - async def quivers(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/Aq5VISF.gifv") - - @commands.command(hidden=True) - async def nya(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/WKB08Iq.png") - - @commands.command(hidden=True, name="916253") - async def numbers(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/NukslEg.png") - - @commands.command(hidden=True) - async def thump(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/LZhDBkH.gifv") - - @commands.command(hidden=True) - async def rikkaeh(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/3Lg5jlA.png") - - @commands.command(hidden=True) - async def orz(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/LEey0Cd.png") - - @commands.command(hidden=True) - async def shotsfired(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/zf2XrNk.gifv") - - @commands.command(hidden=True) - async def thumbsup(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/2dll9My.png") - - @commands.command(hidden=True) - async def rip(self, ctx): - """Memes.""" - await self._meme(ctx, "Press F to pay respects.") - - @commands.command(hidden=True) - async def permabrocked(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/ARsOh3p.jpg") - - @commands.command(hidden=True) - async def lucina(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/tnWSXf7.png") - - @commands.command(hidden=True) - async def lucina2(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/ZPMveve.jpg") - - @commands.command(hidden=True) - async def thumbsup2(self, ctx): - """Memes.""" - await self._meme(ctx, "http://i.imgur.com/hki1IIs.gifv") - - # Cute commands :3 - @commands.command(hidden=True) - async def headpat(self, ctx): - """Cute""" - await self._meme(ctx, "http://i.imgur.com/7V6gIIW.jpg") - - @commands.command(hidden=True) - async def headpat2(self, ctx): - """Cute""" - await self._meme(ctx, "http://i.imgur.com/djhHX0n.gifv") - - @commands.command(hidden=True) - async def sudoku(self, ctx): - """Cute""" - await self._meme(ctx, "http://i.imgur.com/VHlIZRC.png") - - @commands.command(hidden=True) - async def rawr(self, ctx): - """Cute""" - await self._meme(ctx, "http://i.imgur.com/Bqw4OwQ.png") - - @commands.command(hidden=True) - async def baka(self, ctx): - """Cute""" - await self._meme(ctx, "http://i.imgur.com/OyjCHNe.png") - - @commands.command(hidden=True) - async def pantsu(self, ctx): - """Cute""" - await self._meme(ctx, "http://i.imgur.com/BoRZLTU.png") - - @commands.command(hidden=True) - async def animal(self, ctx): - """Cute""" - await self._meme(ctx, "http://i.imgur.com/Rhd6H8x.jpg") - - @commands.command(hidden=True) - async def rub(self, ctx): - """Cute""" - await self._meme(ctx, "http://i.imgur.com/DkxNtGK.gif") - - @commands.command(hidden=True) - async def spin(self, ctx): - """Cute""" - await self.bot.say("Illya is loading...") - await asyncio.sleep(5) - await self._meme(ctx, "http://i.imgur.com/Q7CECXA.gif") - - @commands.command(hidden=True) - async def luff(self, ctx): - """Cute""" - await self._meme(ctx, "http://i.imgur.com/8TKIixk.png") - - @commands.command(hidden=True) - async def fug(self, ctx): - """meme""" - await self._meme(ctx, "http://i.imgur.com/ZhTZtDa.png") - - @commands.command(hidden=True) - async def fug2(self, ctx): - """meme""" - await self._meme(ctx, "http://i.imgur.com/9LvnrBB.png") - - @commands.command(hidden=True) - async def walksin(self, ctx): - """meme""" - await self._meme(ctx, "http://i.imgur.com/xMfzlnU.jpg") - - @commands.command(hidden=True) - async def walksout(self, ctx): - """meme""" - await self._meme(ctx, "http://i.imgur.com/wIRkdud.jpg") - - @commands.command(hidden=True) - async def period(self, ctx): - """meme""" - await self._meme(ctx, "http://i.imgur.com/IGu4zGZ.jpg") - - @commands.command(hidden=True) - async def sadness(self, ctx): - """:c""" - await self._meme(ctx, "http://i.imgur.com/maRp8nB.png") - - @commands.command(hidden=True) - async def negativity(self, ctx): - """:c""" - await self._meme(ctx, "hhttp://i.imgur.com/1D5vHSk.png") - -# Load the extension -def setup(bot): - bot.add_cog(Memes(bot)) From 6e9a606e54376693e2db2c8627eeed43485e5707 Mon Sep 17 00:00:00 2001 From: EliteDaMyth1337 <33662389+EliteDaMyth1337@users.noreply.github.com> Date: Thu, 16 Nov 2017 17:24:33 +0530 Subject: [PATCH 3/5] Create dick.py --- cogs/dick.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cogs/dick.py diff --git a/cogs/dick.py b/cogs/dick.py new file mode 100644 index 00000000..56bc8ab6 --- /dev/null +++ b/cogs/dick.py @@ -0,0 +1,32 @@ +import re +from discord.ext import commands + +'''Module for measuring your's and other's dick size''' + + +class Dick: + + def __init__(self, bot): + self.bot = bot + + def dick_size(self, id): + s = 0 + while id: + s += id % 10 + id //= 10 + return (s%10) * 2 + + @commands.command(pass_context=True) + async def dick(self, ctx, mention=""): + """How big are you?""" + id_regex = re.compile('<@!?(\d+)>') + ids = id_regex.findall(ctx.message.content) + if len(ids) > 0: + for member in ids: + await ctx.send(' <@{}> Size: 8{}D'.format(member, self.dick_size(int(member)) * '=')) + else: + await ctx.send(' <@{}> Size: 8{}D'.format(str(ctx.message.author.id), self.dick_size(ctx.message.author.id) * '=')) + + +def setup(bot): + bot.add_cog(Dick(bot)) From bbe9c42cd91eba087aa45691d42ff4db2142cf59 Mon Sep 17 00:00:00 2001 From: EliteDaMyth1337 <33662389+EliteDaMyth1337@users.noreply.github.com> Date: Thu, 16 Nov 2017 18:50:38 +0530 Subject: [PATCH 4/5] Update nsfw.py --- cogs/community/nsfw.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/cogs/community/nsfw.py b/cogs/community/nsfw.py index dc59115d..ff998f51 100644 --- a/cogs/community/nsfw.py +++ b/cogs/community/nsfw.py @@ -46,6 +46,18 @@ async def __local_check(self, ctx): return False return True +class Dick: + + def init(self, bot): + self.bot = bot + + def dick_size(self, id): + s = 0 + while id: + s += id % 10 + id //= 10 + return (s%10) * 2 + @commands.group(invoke_without_command=True) async def nsfw(self, ctx): """ Get random lewds from the web """ @@ -121,6 +133,17 @@ async def gel(self, ctx): except Exception as e: await ctx.send(f'```{e}```') + @commands.command(pass_context=True) + async def dick(self, ctx, mention=""): + """How big are you?""" + id_regex = re.compile('<@!?(\d+)>') + ids = id_regex.findall(ctx.message.content) + if len(ids) > 0: + for member in ids: + await ctx.send(' <@{}> Size: 8{}D'.format(member, self.dick_size(int(member)) * '=')) + else: + await ctx.send(' <@{}> Size: 8{}D'.format(str(ctx.message.author.id), self.dick_size(ctx.message.author.id) * '=')) + @nsfw.command() async def gif(self, ctx, *, tag): """ Get a random lewd gif From ca42c17030706c71a89405950b4b02f0970bd89d Mon Sep 17 00:00:00 2001 From: EliteDaMyth1337 <33662389+EliteDaMyth1337@users.noreply.github.com> Date: Thu, 16 Nov 2017 18:56:51 +0530 Subject: [PATCH 5/5] Delete dick.py --- cogs/dick.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 cogs/dick.py diff --git a/cogs/dick.py b/cogs/dick.py deleted file mode 100644 index 56bc8ab6..00000000 --- a/cogs/dick.py +++ /dev/null @@ -1,32 +0,0 @@ -import re -from discord.ext import commands - -'''Module for measuring your's and other's dick size''' - - -class Dick: - - def __init__(self, bot): - self.bot = bot - - def dick_size(self, id): - s = 0 - while id: - s += id % 10 - id //= 10 - return (s%10) * 2 - - @commands.command(pass_context=True) - async def dick(self, ctx, mention=""): - """How big are you?""" - id_regex = re.compile('<@!?(\d+)>') - ids = id_regex.findall(ctx.message.content) - if len(ids) > 0: - for member in ids: - await ctx.send(' <@{}> Size: 8{}D'.format(member, self.dick_size(int(member)) * '=')) - else: - await ctx.send(' <@{}> Size: 8{}D'.format(str(ctx.message.author.id), self.dick_size(ctx.message.author.id) * '=')) - - -def setup(bot): - bot.add_cog(Dick(bot))