<commit_before>'''
Created on 15Jul.,2017

@author: <NAME> | SuperFrosty
'''
import asyncio
import utilities
from discord import Embed
from discord.ext import commands


class Help:
    """Commands that return helpful information."""

    def __init__(self, bot):
        self.bot = bot
        bot.remove_command("help")

    @commands.group()
    async def help(self, ctx):
        if ctx.invoked_subcommand is None:
            embed=Embed(colour=0x1AFFA7, description="[Click here to view a full list of commands!](https://superfrosty.github.io/BlitzcrankBotV2/)")
            embed.set_author(name="Blitzcrank Bot - Commands:", icon_url=self.bot.user.avatar_url)
            embed.add_field(name="b!search 'User'",
                            value="Show a user's ranked statistics",
                            inline=True)
            embed.add_field(name="Example:",
                            value="b!search Riviere",
                            inline=True)
            embed.add_field(name="b!mastery 'User' 'Champ'",
                            value="Shows a user's champ mastery",
                            inline=True)
            embed.add_field(name="Example:",
                            value="b!mastery Riviere Sivir",
                            inline=True)
            embed.add_field(name="b!game 'User'",
                            value="Look up a user's current match",
                            inline=True)
            embed.add_field(name="Example:",
                            value="b!game Riviere",
                            inline=True)
            embed.add_field(name="b!region view",
                            value="Show the default region",
                            inline=False)
            embed.add_field(name="b!region set 'region'",
                            value="Set the server's default region",
                            inline=True)
            embed.add_field(name="Example:",
                            value="b!region set OCE",
                            inline=True)
            embed.add_field(name="b!region update 'region'",
                            value="Update server's default region",
                            inline=True)
            embed.add_field(name="Example:",
                            value="b!region update NA",
                            inline=True)
            embed.add_field(name="b!region remove",
                            value="Removes server's default region",
                            inline=True)
            embed.add_field(name="b!region list",
                            value="Show a list of all valid regions",
                            inline=False)
            embed.add_field(name="Other commands:",
                            value="Other commands can be listed with b!help more",
                            inline=True)
            utilities.footer(ctx, embed)
            await ctx.send("", embed=embed)

    @help.command()
    async def more(self, ctx):
        embed = Embed(colour=0x1AFFA7)
        embed.set_author(name="Blitzcrank Bot - Commands:", icon_url=self.bot.user.avatar_url)
        embed.add_field(name="b!invite",
                        value="Invite Blitzcrank to your server!",
                        inline=False)
        embed.add_field(name="b!support",
                        value="Ask for help in the support server!",
                        inline=False)
        embed.add_field(name="b!ping",
                        value="Tests response time.",
                        inline=False)
        embed.add_field(name="b!uptime",
                        value="Return's time since last reboot.",
                        inline=False)
        embed.add_field(name="b!info",
                        value="Returns basic info about Blitzcrank.",
                        inline=False)
        utilities.footer(ctx, embed)
        await ctx.send("", embed=embed)

    @commands.command(no_pm=True)
    async def invite(self, ctx):
        """Add Blitzcrank to your server with this link!"""
        link = "https://discordapp.com/oauth2/authorize?client_id=282765243862614016&scope=bot&permissions=19456"
        await ctx.send("Invite me to your server with this link!\n" + link)

    @commands.command(no_pm=True)
    async def support(self, ctx):
        """Join the support server to ask for help!"""
        link = "https://discord.gg/J78uAgZ"
        await ctx.send("Join my support server if you need help with commands!\n " + link)


def setup(bot):<commit_msg>Update support server invite to #info<commit_after>'''
Created on 15Jul.,2017

@author: <NAME> | SuperFrosty
'''
import asyncio
import utilities
from discord import Embed
from discord.ext import commands


class Help:
    """Commands that return helpful information."""

    def __init__(self, bot):
        self.bot = bot
        bot.remove_command("help")

    @commands.group()
    async def help(self, ctx):
        if ctx.invoked_subcommand is None:
            embed=Embed(colour=0x1AFFA7, description="[Click here to view a full list of commands!](https://superfrosty.github.io/BlitzcrankBotV2/)")
            embed.set_author(name="Blitzcrank Bot - Commands:", icon_url=self.bot.user.avatar_url)
            embed.add_field(name="b!search 'User'",
                            value="Show a user's ranked statistics",
                            inline=True)
            embed.add_field(name="Example:",
                            value="b!search Riviere",
                            inline=True)
            embed.add_field(name="b!mastery 'User' 'Champ'",
                            value="Shows a user's champ mastery",
                            inline=True)
            embed.add_field(name="Example:",
                            value="b!mastery Riviere Sivir",
                            inline=True)
            embed.add_field(name="b!game 'User'",
                            value="Look up a user's current match",
                            inline=True)
            embed.add_field(name="Example:",
                            value="b!game Riviere",
                            inline=True)
            embed.add_field(name="b!region view",
                            value="Show the default region",
                            inline=False)
            embed.add_field(name="b!region set 'region'",
                            value="Set the server's default region",
                            inline=True)
            embed.add_field(name="Example:",
                            value="b!region set OCE",
                            inline=True)
            embed.add_field(name="b!region update 'region'",
                            value="Update server's default region",
                            inline=True)
            embed.add_field(name="Example:",
                            value="b!region update NA",
                            inline=True)
            embed.add_field(name="b!region remove",
                            value="Removes server's default region",
                            inline=True)
            embed.add_field(name="b!region list",
                            value="Show a list of all valid regions",
                            inline=False)
            embed.add_field(name="Other commands:",
                            value="Other commands can be listed with b!help more",
                            inline=True)
            utilities.footer(ctx, embed)
            await ctx.send("", embed=embed)

    @help.command()
    async def more(self, ctx):
        embed = Embed(colour=0x1AFFA7)
        embed.set_author(name="Blitzcrank Bot - Commands:", icon_url=self.bot.user.avatar_url)
        embed.add_field(name="b!invite",
                        value="Invite Blitzcrank to your server!",
                        inline=False)
        embed.add_field(name="b!support",
                        value="Ask for help in the support server!",
                        inline=False)
        embed.add_field(name="b!ping",
                        value="Tests response time.",
                        inline=False)
        embed.add_field(name="b!uptime",
                        value="Return's time since last reboot.",
                        inline=False)
        embed.add_field(name="b!info",
                        value="Returns basic info about Blitzcrank.",
                        inline=False)
        utilities.footer(ctx, embed)
        await ctx.send("", embed=embed)

    @commands.command(no_pm=True)
    async def invite(self, ctx):
        """Add Blitzcrank to your server with this link!"""
        link = "https://discordapp.com/oauth2/authorize?client_id=282765243862614016&scope=bot&permissions=19456"
        await ctx.send("Invite me to your server with this link!\n" + link)

    @commands.command(no_pm=True)
    async def support(self, ctx):
        """Join the support server to ask for help!"""
        link = "https://discord.gg/UP4TwFX"
        await ctx.send("Join my support server if you need help with commands!\n " + link)


def setup(bot):
{'fraction_non_alphanumeric': 0.10519938312403614, 'fraction_numerical': 0.008482044503194536, 'mean_word_length': 1.5531496062992125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '2680002', 'n_tokens_mistral': 2407, 'n_tokens_neox': 2313, 'n_words': 536}