<commit_before>import os
import sys
from random import randint
import maincore as core

sp = os.path.dirname(os.path.realpath(sys.argv[0]))

def run(message, prefix, aliasName):
    kaomoji = [r"♪(･ω･)ﾉ",
               r"(*ゝω・)ﾉ",
               r"ﾟ･:,｡★＼(^-^ )♪ありがと♪( ^-^)/★,｡･:･ﾟ",
               r"(★^O^★)",
               r"☆*:.｡. o(≧▽≦)o .｡.:*☆",
               r"(ノ^_^)ノ",
               r"(ﾉﾟ▽ﾟ)ﾉ",
               r"(ﾉ´ヮ´)ﾉ*:･ﾟ✧",
               r"(*^3^)/~☆",
               r"<(_ _*)> ｱﾘｶﾞﾄｫ",
               r"ありがとぅございますっっヽ(●´∀`)人(´∀`●)ﾉ",
               r"ありがとうございましたm(*-ω-)m",
               r"+｡:.ﾟヽ(*´∀)ﾉﾟ.:｡+ﾟｧﾘｶﾞﾄｩ"
              ]

    selectedKaomoji = kaomoji[randint(0, len(kaomoji) - 1)]
    if message.content.strip() == prefix + aliasName:
        combine = selectedKaomoji + " Thank you!"
    else:
        if len(message.mentions) == 1:
            mentiont = message.mentions[0]
            combine = selectedKaomoji + " Thank you, " + mentiont.name + "!"
        else:
            cmdlen = len(prefix + aliasName)
            opstring = message.content[cmdlen:].strip()
            if opstring == "--list":
                combine = ""
                for i in kaomoji:
                    combine = combine + i + "n"
            else:
                gotuser = core.userget(opstring, message.guild.id)
                if gotuser == core.cl.user:
                    combine = "You're welcome, {}! \❤".format(message.author.mention)
                elif gotuser == message.author:
                    combine = "Why would I need to thank you, {}?".format(message.author.mention)
                elif gotuser is None:
                    combine = selectedKaomoji + " Thank you, " + opstring + "!"
                else:
                    combine = selectedKaomoji + " Thank you, " + gotuser.name + "!"

    core.send(message.channel, combine)
<commit_msg>fixed thank command<commit_after>import os
import sys
from random import randint
import maincore as core

sp = os.path.dirname(os.path.realpath(sys.argv[0]))

def run(message, prefix, aliasName):
    kaomoji = [r"♪(･ω･)ﾉ",
               r"(\*ゝω・)ﾉ",
               r"ﾟ･:,｡★＼(^-^ )♪ありがと♪( ^-^)/★,｡･:･ﾟ",
               r"(★^O^★)",
               r"☆\*:.｡. o(≧▽≦)o .｡.:\*☆",
               r"(ノ^_^)ノ",
               r"(ﾉﾟ▽ﾟ)ﾉ",
               r"(ﾉ´ヮ´)ﾉ\*:･ﾟ✧",
               r"(\*^3^)/\~☆",
               r"<(\_ \_\*)> ｱﾘｶﾞﾄｫ",
               r"ありがとぅございますっっヽ(●´∀\`)人(´∀\`●)ﾉ",
               r"ありがとうございましたm(\*-ω-)m",
               r"+｡:.ﾟヽ(\*´∀)ﾉﾟ.:｡+ﾟｧﾘｶﾞﾄｩ"
              ]

    selectedKaomoji = kaomoji[randint(0, len(kaomoji) - 1)]
    if message.content.strip() == prefix + aliasName:
        combine = selectedKaomoji + " Thank you!"
    else:
        if len(message.mentions) == 1:
            mentiont = message.mentions[0]
            combine = selectedKaomoji + " Thank you, " + mentiont.name + "!"
        else:
            cmdlen = len(prefix + aliasName)
            opstring = message.content[cmdlen:].strip()
            if opstring == "--list":
                combine = ""
                for i in kaomoji:
                    combine = combine + i + "\n"
            else:
                gotuser = core.userget(opstring, message.guild.id)
                if gotuser == core.cl.user:
                    combine = "You're welcome, {}! \❤".format(message.author.mention)
                elif gotuser == message.author:
                    combine = "Why would I need to thank you, {}?".format(message.author.mention)
                elif gotuser is None:
                    combine = selectedKaomoji + " Thank you, " + opstring + "!"
                else:
                    combine = selectedKaomoji + " Thank you, " + gotuser.name + "!"

    core.send(message.channel, combine)

{'fraction_non_alphanumeric': 0.17326994189117803, 'fraction_numerical': 0.003169572107765452, 'mean_word_length': 1.5433176628609806, 'pattern_counts': {'":': 2, '<': 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': '4692974', 'n_tokens_mistral': 1554, 'n_tokens_neox': 1428, 'n_words': 238}