<commit_before>#Importing libraries
import discord
from discord.ext import commands
from sys import argv


class Assistance:
    """
    Commands that will mostly be used in #help-and-questions.
    """
    def __init__(self, bot):
        self.bot = bot
    print('Addon "Assistance" has been loaded.')

    @commands.command(pass_context=True, name="staffreq")
    async def staffreq(self, ctx, *, msg_request=""):
        """Request staff, with optional additional text. Helpers and Staff only."""
        helpers_role = discord.utils.get(ctx.message.server.roles, name="Helpers")
        staff_role = discord.utils.get(ctx.message.server.roles, name="Staff")
        author = ctx.message.author
        if (helpers_role not in author.roles) and (staff_role not in author.roles):
            msg = "{0} You cannot used this command at this time. Please ask individual staff members if you need help.".format(author.mention)
            await self.bot.say(msg)
            return
        # await self.bot.say("Request sent.")
        msg = "❗️ **Assistance requested**: {0} by {1} | {2}#{3} @here".format(ctx.message.channel.mention, author.mention, author.name, ctx.message.author.discriminator)
        if msg_request != "":
            # much \n
            msg += "\n✏️ __Additional text__: " + msg_request
        await self.bot.send_message(discord.utils.get(ctx.message.server.channels, name="mods"), msg)
        await self.bot.delete_message(ctx.message)

    @commands.command()
    async def guide(self):
        """Links to Plailect's guide."""
        await self.bot.say("The recommended guide for setting up a hacked 3DS is here: https://plailect.github.io/Guide/")

    @commands.command()<commit_msg>.staffreq sends PM to user<commit_after>#Importing libraries
import discord
from discord.ext import commands
from sys import argv


class Assistance:
    """
    Commands that will mostly be used in #help-and-questions.
    """
    def __init__(self, bot):
        self.bot = bot
    print('Addon "Assistance" has been loaded.')

    @commands.command(pass_context=True, name="staffreq")
    async def staffreq(self, ctx, *, msg_request=""):
        """Request staff, with optional additional text. Helpers and Staff only."""
        helpers_role = discord.utils.get(ctx.message.server.roles, name="Helpers")
        staff_role = discord.utils.get(ctx.message.server.roles, name="Staff")
        author = ctx.message.author
        if (helpers_role not in author.roles) and (staff_role not in author.roles):
            msg = "{0} You cannot used this command at this time. Please ask individual staff members if you need help.".format(author.mention)
            await self.bot.say(msg)
            return
        # await self.bot.say("Request sent.")
        msg = "❗️ **Assistance requested**: {0} by {1} | {2}#{3} @here".format(ctx.message.channel.mention, author.mention, author.name, ctx.message.author.discriminator)
        if msg_request != "":
            # much \n
            msg += "\n✏️ __Additional text__: " + msg_request
        await self.bot.send_message(discord.utils.get(ctx.message.server.channels, name="mods"), msg)
        await self.bot.delete_message(ctx.message)
        await self.bot.send_message(author, "✅ Online staff has been notified of your request in {0}.".format(ctx.message.channel.mention))

    @commands.command()
    async def guide(self):
        """Links to Plailect's guide."""
        await self.bot.say("The recommended guide for setting up a hacked 3DS is here: https://plailect.github.io/Guide/")

    @commands.command()
{'fraction_non_alphanumeric': 0.1270548899414879, 'fraction_numerical': 0.003622178879910839, 'mean_word_length': 3.0156599552572705, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '310881', 'n_tokens_mistral': 1079, 'n_tokens_neox': 1070, 'n_words': 300}