<commit_before>import discord
from discord.ext import commands
from sys import argv

class Memes:
    """
    Meme commands
    """
    def __init__(self, bot):
        self.bot = bot
        print('Addon "{}" loaded'.format(self.__class__.__name__))

    def check_channel(self, ctx, msg):
        if ctx.message.channel.name[0:5] == "help-" or ctx.message.channel.name == "friend-codes":
            return ctx.message.author.mention + " Meme commands are disabled in this channel."
        else:
            return ctx.message.author.display_name + ": " + msg

    # 3dshacks memes
    @commands.command(pass_context=True)
    async def s_99(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "**ALL HAIL BRITANNIA!**"))

    @commands.command(pass_context=True)
    async def xor(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/nLKATP6.png"))

    @commands.command(pass_context=True)
    async def megumi(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/GMRp1dj.jpg"))

    @commands.command(pass_context=True)
    async def inori(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "https://i.imgur.com/WLncIsi.gif"))

    @commands.command(pass_context=True)
    async def inori2(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/V0uu99A.jpg"))

    @commands.command(pass_context=True)
    async def kina(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/8Mm5ZvB.jpg"))

    @commands.command(pass_context=True)
    async def r34(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/sjQZKBF.gif"))

    @commands.command(pass_context=True)
    async def lenny(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "( ͡° ͜ʖ ͡°)"))

    @commands.command(pass_context=True)
    async def rip(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "Press F to pay respects."))

    @commands.command(pass_context=True)
    async def permabrocked(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/ARsOh3p.jpg"))

    @commands.command(pass_context=True)
    async def knp(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/EsJ191C.png"))
        
    @commands.command(pass_context=True)
    async def xarec(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "https://i.imgur.com/wRVuidH.gif"))

    @commands.command(pass_context=True)
    async def clap(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/UYbIZYs.gifv"))

    @commands.command(pass_context=True)
    async def ayyy(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/NjMxnB5.gif"))
    
    @commands.command(pass_context=True)
    async def hazel(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/vpu8bX3.png"))

    @commands.command(pass_context=True)
    async def pbanj(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/c6P7KY5.png"))

    # Cute commands :3
    @commands.command(pass_context=True)
    async def headpat(self, ctx):
        """Cute"""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/7V6gIIW.jpg"))

# Load the extension
def setup(bot):
    bot.add_cog(Memes(bot))<commit_msg>.listmemes<commit_after>import discord
from discord.ext import commands
from sys import argv

class Memes:
    """
    Meme commands
    """
    def __init__(self, bot):
        self.bot = bot
        print('Addon "{}" loaded'.format(self.__class__.__name__))

    def _check_channel(self, ctx, msg):
        if ctx.message.channel.name[0:5] == "help-" or ctx.message.channel.name == "friend-codes":
            return ctx.message.author.mention + " Meme commands are disabled in this channel."
        else:
            return ctx.message.author.display_name + ": " + msg

    # list memes
    @commands.command(name="listmemes", pass_context=True)
    async def _listmemes(self, ctx):
        """List meme commands."""
        # this feels wrong...
        funcs = dir(self)
        msg = "```\n"
        for func in funcs:
            if func != "bot" and func[0] != "_":
                msg += func + "\n"
        msg += "```"
        await self.bot.say(self._check_channel(ctx, msg))

    # 3dshacks memes
    @commands.command(pass_context=True, hidden=True)
    async def s_99(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "**ALL HAIL BRITANNIA!**"))

    @commands.command(pass_context=True, hidden=True)
    async def xor(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "http://i.imgur.com/nLKATP6.png"))

    @commands.command(pass_context=True, hidden=True)
    async def megumi(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "http://i.imgur.com/GMRp1dj.jpg"))

    @commands.command(pass_context=True, hidden=True)
    async def inori(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "https://i.imgur.com/WLncIsi.gif"))

    @commands.command(pass_context=True, hidden=True)
    async def inori2(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "http://i.imgur.com/V0uu99A.jpg"))

    @commands.command(pass_context=True, hidden=True)
    async def kina(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "http://i.imgur.com/8Mm5ZvB.jpg"))

    @commands.command(pass_context=True, hidden=True)
    async def r34(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "http://i.imgur.com/sjQZKBF.gif"))

    @commands.command(pass_context=True, hidden=True)
    async def lenny(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "( ͡° ͜ʖ ͡°)"))

    @commands.command(pass_context=True, hidden=True)
    async def rip(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "Press F to pay respects."))

    @commands.command(pass_context=True, hidden=True)
    async def permabrocked(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "http://i.imgur.com/ARsOh3p.jpg"))

    @commands.command(pass_context=True, hidden=True)
    async def knp(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "http://i.imgur.com/EsJ191C.png"))

    @commands.command(pass_context=True, hidden=True)
    async def clap(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "http://i.imgur.com/UYbIZYs.gifv"))

    @commands.command(pass_context=True, hidden=True)
    async def ayyy(self, ctx):
        """Memes."""
        await self.bot.say(self.check_channel(ctx, "http://i.imgur.com/NjMxnB5.gif"))

    @commands.command(pass_context=True, hidden=True)
    async def hazel(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "http://i.imgur.com/vpu8bX3.png"))

    @commands.command(pass_context=True, hidden=True)
    async def pbanj(self, ctx):
        """Memes."""
        await self.bot.say(self._check_channel(ctx, "http://i.imgur.com/c6P7KY5.png"))

    # Cute commands :3
    @commands.command(pass_context=True, hidden=True)
    async def headpat(self, ctx):
        """Cute"""
        await self.bot.say(self._check_channel(ctx, "http://i.imgur.com/7V6gIIW.jpg"))

# Load the extension
def setup(bot):
    bot.add_cog(Memes(bot))
{'fraction_non_alphanumeric': 0.1688328075709779, 'fraction_numerical': 0.007192429022082019, 'mean_word_length': 2.9413227250124314, 'pattern_counts': {'":': 5, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2525054', 'n_tokens_mistral': 2787, 'n_tokens_neox': 2757, 'n_words': 472}