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

class Rules:
    """
    Read da rules.
    """
    def __init__(self, bot):
        self.bot = bot
        print('Addon "{}" loaded'.format(self.__class__.__name__))

    @commands.command()
    async def consoleban(self):
        """States some stuff about no assistance with bans"""
        await self.bot.say("Please refrain from asking for or giving assistance with unbanning consoles which have been banned from online services.\nReminder: sharing files that allow other users to evade Nintendo issued bans is a bannable offense.")

    @commands.command()
    async def pirate(self):
        """Hey! You can't steal another trainer's Pokémon!"""
        await self.bot.say("Please refrain from asking for or giving assistance with installing or using illegitimately obtained software.")

    @commands.command(hidden=True)
    async def nick(self):
       """Displays the Nickname and Avatar Policy."""
       await self.bot.say("**__Nickname and Avatar Policy:__**\nNicknames are to be kept primarily alphanumeric, to keep them easy to tag and read. In addition, excessively long usernames are unacceptable, as they break up the chat too much.\nIf your username is not, you may request a nickname from a staff member. Otherwise, we may forcibly set one on you.\nAttempts to impersonate another user via nickname and/or avatar change are unacceptable.\nExcessively crude or NSFW usernames or avatars are unacceptable.​")

    @commands.command()
    async def rules(self):
       """Links to 3dshacks.ml."""
       await self.bot.say("Please check {} or <http://3dshacks.ml> for a full list of rules".format(self.bot.welcome_channel.mention))

    @commands.command(hidden=True)
    async def r1(self):
       """Displays rule one."""
       await self.bot.say("```1. Keep your conduct and conversation civil. This means, including and limited to:\na) You may disagree with anyone or anything you like, but you should try to keep it to opinions, and not people. Avoid vitriol.\nb) Constant antagonistic behavior is considered uncivil and appropriate action will be taken.\n- This rule is intended purely for the purpose of attempting to prevent flame wars, and is not to be interpreted in a way that disrupts normal conversation.```")

    @commands.command(hidden=True)
    async def r2(self):
       """Displays rule two."""
       await self.bot.say("```2. English is the only language to be spoken on this server.```")

    @commands.command(hidden=True)
    async def r3(self):
       """Displays rule three."""
       await self.bot.say("```3. Support questions are to be asked in #help-and-questions exclusively.```")

    @commands.command(hidden=True)
    async def r4(self):
       """Displays rule four."""
       await self.bot.say("```4. When answering questions in #help-and-questions, remain helpful. Derailing support is impermissible. Remarks that are not helpful will be removed on sight. Continued derailing will constitute further action.```")

    @commands.command(hidden=True)
    async def r5(self):
       """Displays rule five."""<commit_msg>Updated link in !rules<commit_after>import discord
from discord.ext import commands
from sys import argv

class Rules:
    """
    Read da rules.
    """
    def __init__(self, bot):
        self.bot = bot
        print('Addon "{}" loaded'.format(self.__class__.__name__))

    @commands.command()
    async def consoleban(self):
        """States some stuff about no assistance with bans"""
        await self.bot.say("Please refrain from asking for or giving assistance with unbanning consoles which have been banned from online services.\nReminder: sharing files that allow other users to evade Nintendo issued bans is a bannable offense.")

    @commands.command()
    async def pirate(self):
        """Hey! You can't steal another trainer's Pokémon!"""
        await self.bot.say("Please refrain from asking for or giving assistance with installing or using illegitimately obtained software.")

    @commands.command(hidden=True)
    async def nick(self):
       """Displays the Nickname and Avatar Policy."""
       await self.bot.say("**__Nickname and Avatar Policy:__**\nNicknames are to be kept primarily alphanumeric, to keep them easy to tag and read. In addition, excessively long usernames are unacceptable, as they break up the chat too much.\nIf your username is not, you may request a nickname from a staff member. Otherwise, we may forcibly set one on you.\nAttempts to impersonate another user via nickname and/or avatar change are unacceptable.\nExcessively crude or NSFW usernames or avatars are unacceptable.​")

    @commands.command()
    async def rules(self):
       """Links to rules website."""
       await self.bot.say("Please check {} or <http://ninty.cf/w/> for a full list of rules".format(self.bot.welcome_channel.mention))

    @commands.command(hidden=True)
    async def r1(self):
       """Displays rule one."""
       await self.bot.say("```1. Keep your conduct and conversation civil. This means, including and limited to:\na) You may disagree with anyone or anything you like, but you should try to keep it to opinions, and not people. Avoid vitriol.\nb) Constant antagonistic behavior is considered uncivil and appropriate action will be taken.\n- This rule is intended purely for the purpose of attempting to prevent flame wars, and is not to be interpreted in a way that disrupts normal conversation.```")

    @commands.command(hidden=True)
    async def r2(self):
       """Displays rule two."""
       await self.bot.say("```2. English is the only language to be spoken on this server.```")

    @commands.command(hidden=True)
    async def r3(self):
       """Displays rule three."""
       await self.bot.say("```3. Support questions are to be asked in #help-and-questions exclusively.```")

    @commands.command(hidden=True)
    async def r4(self):
       """Displays rule four."""
       await self.bot.say("```4. When answering questions in #help-and-questions, remain helpful. Derailing support is impermissible. Remarks that are not helpful will be removed on sight. Continued derailing will constitute further action.```")

    @commands.command(hidden=True)
    async def r5(self):
       """Displays rule five."""
{'fraction_non_alphanumeric': 0.09887853419680935, 'fraction_numerical': 0.00315905860053704, 'mean_word_length': 3.595065312046444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '6668734', 'n_tokens_mistral': 1727, 'n_tokens_neox': 1623, 'n_words': 725}