#imports
import discord
import time
import random
from discord.ext import commands

#client
client = discord.Client()

#function Command10()
def Commmand10(main1, output1, main2, output2, main3, output3, main4, output4, main5, output5, main6, output6, main7, output7, main8, output8, main9, output9, main10, output10):
    #client
    @client.event
    async def on_message(message):
        #if someone says the command in chat then the bot will get activated
        #commmand 1
        if message.content == main1:
            await message.channel.send(output1)
        #command 2
        if message.content == main2:
            await message.channel.send(output2)
        #command 3
        if message.content == main3:
            await message.channel.send(output3)
        #command 4
        if message.content == main4:
            await message.channel.send(output4)
        #command 5
        if message.content == main5:
            await message.channel.send(output5)
        #command 6
        if message.content == main6:
            await message.channel.send(output6)
        #command 7
        if message.content == main7:
            await message.channel.send(output7)
        #command 8
        if message.content == main8:
            await message.channel.send(output8)
        #command 9
        if message.content == main9:
            await message.channel.send(output9)
        #command 10
        if message.content == main10:
            await message.channel.send(output10)
#function Command9()
def Commmand9(main1, output1, main2, output2, main3, output3, main4, output4, main5, output5, main6, output6, main7, output7, main8, output8, main9, output9):
    #client
    @client.event
    async def on_message(message):
        #if someone says the command in chat then the bot will get activated
        #commmand 1
        if message.content == main1:
            await message.channel.send(output1)
        #command 2
        if message.content == main2:
            await message.channel.send(output2)
        #command 3
        if message.content == main3:
            await message.channel.send(output3)
        #command 4
        if message.content == main4:
            await message.channel.send(output4)
        #command 5
        if message.content == main5:
            await message.channel.send(output5)
        #command 6
        if message.content == main6:
            await message.channel.send(output6)
        #command 7
        if message.content == main7:
            await message.channel.send(output7)
        #command 8
        if message.content == main8:
            await message.channel.send(output8)
        #command 9
        if message.content == main9:
            await message.channel.send(output9)

#function Command8()
def Commmand8(main1, output1, main2, output2, main3, output3, main4, output4, main5, output5, main6, output6, main7, output7, main8, output8):
    #client
    @client.event
    async def on_message(message):
        #if someone says the command in chat then the bot will get activated
        #commmand 1
        if message.content == main1:
            await message.channel.send(output1)
        #command 2
        if message.content == main2:
            await message.channel.send(output2)
        #command 3
        if message.content == main3:
            await message.channel.send(output3)
        #command 4
        if message.content == main4:
            await message.channel.send(output4)
        #command 5
        if message.content == main5:
            await message.channel.send(output5)
        #command 6
        if message.content == main6:
            await message.channel.send(output6)
        #command 7
        if message.content == main7:
            await message.channel.send(output7)
        #command 8
        if message.content == main8:
            await message.channel.send(output8)

#function Command7()
def Commmand7(main1, output1, main2, output2, main3, output3, main4, output4, main5, output5, main6, output6, main7, output7):
    #client
    @client.event
    async def on_message(message):
        #if someone says the command in chat then the bot will get activated
        #commmand 1
        if message.content == main1:
            await message.channel.send(output1)
        #command 2
        if message.content == main2:
            await message.channel.send(output2)
        #command 3
        if message.content == main3:
            await message.channel.send(output3)
        #command 4
        if message.content == main4:
            await message.channel.send(output4)
        #command 5
        if message.content == main5:
            await message.channel.send(output5)
        #command 6
        if message.content == main6:
            await message.channel.send(output6)
        #command 7
        if message.content == main7:
            await message.channel.send(output7)

#function Command6()
def Commmand6(main1, output1, main2, output2, main3, output3, main4, output4, main5, output5, main6, output6):
    #client
    @client.event
    async def on_message(message):
        #if someone says the command in chat then the bot will get activated
        #commmand 1
        if message.content == main1:
            await message.channel.send(output1)
        #command 2
        if message.content == main2:
            await message.channel.send(output2)
        #command 3
        if message.content == main3:
            await message.channel.send(output3)
        #command 4
        if message.content == main4:
            await message.channel.send(output4)
        #command 5
        if message.content == main5:
            await message.channel.send(output5)
        #command 6
        if message.content == main6:
            await message.channel.send(output6)

#function Command5()
def Commmand5(main1, output1, main2, output2, main3, output3, main4, output4, main5, output5):
    #client
    @client.event
    async def on_message(message):
        #if someone says the command in chat then the bot will get activated
        #commmand 1
        if message.content == main1:
            await message.channel.send(output1)
        #command 2
        if message.content == main2:
            await message.channel.send(output2)
        #command 3
        if message.content == main3:
            await message.channel.send(output3)
        #command 4
        if message.content == main4:
            await message.channel.send(output4)
        #command 5
        if message.content == main5:
            await message.channel.send(output5)

#function Command4()
def Commmand4(main1, output1, main2, output2, main3, output3, main4, output4):
    #client
    @client.event
    async def on_message(message):
        #if someone says the command in chat then the bot will get activated
        #commmand 1
        if message.content == main1:
            await message.channel.send(output1)
        #command 2
        if message.content == main2:
            await message.channel.send(output2)
        #command 3
        if message.content == main3:
            await message.channel.send(output3)
        #command 4
        if message.content == main4:
            await message.channel.send(output4)

#function Command3()
def Commmand3(main1, output1, main2, output2, main3, output3):
    #client
    @client.event
    async def on_message(message):
        #if someone says the command in chat then the bot will get activated
        #commmand 1
        if message.content == main1:
            await message.channel.send(output1)
        #command 2
        if message.content == main2:
            await message.channel.send(output2)
        #command 3
        if message.content == main3:
            await message.channel.send(output3)

#function Command2()
def Commmand2(main1, output1, main2, output2):
    #client
    @client.event
    async def on_message(message):
        #if someone says the command in chat then the bot will get activated
        #commmand 1
        if message.content == main1:
            await message.channel.send(output1)
        #command 2
        if message.content == main2:
            await message.channel.send(output2)

#function Command1()
def Commmand1(main1, output1):
    #client
    @client.event
    async def on_message(message):
        #if someone says the command in chat then the bot will get activated
        #commmand 1
        if message.content == main1:
            await message.channel.send(output1)



#function RunClient()
def RunClient(tokenn):
    client.run(tokenn)

#function BotReady()
def BotReady():
    @client.event
    async def on_ready():
        print(f"{client.user} Is Ready")

#function to chat througth the bot
def chatit():
    while True:
        caht = input(">>>")
        @client.event
        async def on_message(message):
            await message.channel.send(caht)

#function Spy()
def Spy():
    @client.event
    async def on_message(message):
        print(message.content)

#function for WordSearch1()
def WordSearch1(Word1):
    @client.event
    async def on_message(message):
        if message.content == Word1:
            print(Word1)

#function for WordSearch2()
def WordSearch2(Word1, Word2):
    @client.event
    async def on_message(message):
        if message.content == Word1:
            print(Word1)
        if message.content == Word2:
            print(Word2)

#function for WordSearch3()
def WordSearch3(Word1, Word2, Word3):
    @client.event
    async def on_message(message):
        if message.content == Word1:
            print(Word1)
        if message.content == Word2:
            print(Word2)
        if message.content == Word3:
            print(Word3)

def Inspiration(nmae):
    @client.event
    async def on_message(message):
        if message.content == nmae:
            inspo = ["Injustice anywhere is a threat to justice everywhere.", "Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that.", "The time is always right to do what is right.", "A riot is the language of the unheard.", "In the end, we will remember not the words of our enemies, but the silence of our friends.", "Free at last, Free at last, Thank God almighty we are free at last.", "Our lives begin to end the day we become silent about things that matter.", "Life's most persistent and urgent question is, 'What are you doing for others?", "We must learn to live together as brothers or perish together as fools.", "The ultimate measure of a man is not where he stands in moments of comfort and convenience, but where he stands at times of challenge and controversy."]
            await message.channel.send("Martin Luther King Jr. Quotes")
            await message.channel.send(random.choice(inspo))

def GetWords(sleeptime):
    @client.event
    async def on_message(message):
        aa = message.content
        learn = [aa]
        x = aa.split(" ")
        learn = aa
        print(x)

#All Toxic 1 - 10 Are functions for stopping toxic
def Toxic1(ToxicW1):
    @client.event
    async def on_message(message):
        if message.content == ToxicW1:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")

def Toxic2(ToxicW1, ToxicW2):
    @client.event
    async def on_message(message):
        if message.content == ToxicW2:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW1:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")

def Toxic3(ToxicW1, ToxicW2, ToxicW3):
    @client.event
    async def on_message(message):
        if message.content == ToxicW2:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW1:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW3:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")

def Toxic4(ToxicW1, ToxicW2, ToxicW3, ToxicW4):
    @client.event
    async def on_message(message):
        if message.content == ToxicW2:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW1:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW3:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW4:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")

def Toxic5(ToxicW1, ToxicW2, ToxicW3, ToxicW4, ToxicW5):
    @client.event
    async def on_message(message):
        if message.content == ToxicW2:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW1:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW3:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW4:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW5:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")

def Toxic6(ToxicW1, ToxicW2, ToxicW3, ToxicW4, ToxicW5, ToxicW6):
    @client.event
    async def on_message(message):
        if message.content == ToxicW2:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW1:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW3:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW4:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW5:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW6:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")

def Toxic7(ToxicW1, ToxicW2, ToxicW3, ToxicW4, ToxicW5, ToxicW6, ToxicW7):
    @client.event
    async def on_message(message):
        if message.content == ToxicW2:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW1:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW3:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW4:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW5:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW6:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW7:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")


def N():
    list = ["William Thornton", "youtube -> https://www.youtube.com/channel/UCqjRkcOMi7ZUTMokFBfcY_g"]
    print("Made By:")
    aaaa = "William Thornton"
    bbbb = "youtube -> https://www.youtube.com/channel/UCqjRkcOMi7ZUTMokFBfcY_g"
    aaa = print(aaaa)
    bbb = print(bbbb)

    is_locala = "aaa" in locals()
    is_localb = "bbb" in locals()
    is_local = "list" in locals()
    is_localbb = "bbbb" in locals()
    is_localaa = "aaaa" in locals()

    if is_localbb == False:
        print("Invalid Copy!")
        quit()
    if is_localaa == False:
        print("Invalid Copy!")
        quit()

    if is_locala == True:
        aergwrgyjyujktyue = 987
    elif is_locala == False:
        print("Not Valid Copy!")
        quit()
    if is_localb == True:
        fweruyjyuktuyktyukfg = 345
    elif is_localb == False:
        print("Not Valid Copy!")
        quit()




    if is_local == True:
        regetrg = "ewiruogwhio"
    else:
        if is_local == False:
            quit()
    if list[0] != "William Thornton":
        print("Not Valid Copy!")
        quit()
    if list[1] != "youtube -> https://www.youtube.com/channel/UCqjRkcOMi7ZUTMokFBfcY_g":
        print("Not Valid Copy!")
        quit()

    is_global = "N" in globals()
    if is_global == False:
        print("Sorry But This May be An Invalid Copy!")
        input("Press Enter To Close...")
        quit()
    else:
        if is_global == True:
            print("")
            print("")
            print("valid copy =", is_global)
            print("Thank You For Using Phoinex!")
            print("")
        else:
            if is_global == False:
                print("")
                print("")
                print("valid copy =", is_global)
                print("Thank You For Using Phoinex!")
                print("")
                print("")


N()





def Toxic8(ToxicW1, ToxicW2, ToxicW3, ToxicW4, ToxicW5, ToxicW6, ToxicW7, ToxicW8):
    @client.event
    async def on_message(message):
        if message.content == ToxicW2:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW1:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW3:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW4:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW5:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW6:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW7:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW8:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")

def Toxic9(ToxicW1, ToxicW2, ToxicW3, ToxicW4, ToxicW5, ToxicW6, ToxicW7, ToxicW8, ToxicW9):
    @client.event
    async def on_message(message):
        if message.content == ToxicW2:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW1:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW3:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW4:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW5:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW6:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW7:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW8:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW9:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")

def Toxic10(ToxicW1, ToxicW2, ToxicW3, ToxicW4, ToxicW5, ToxicW6, ToxicW7, ToxicW8, ToxicW9, ToxicW10):
    @client.event
    async def on_message(message):
        if message.content == ToxicW2:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW1:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW3:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW4:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW5:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW6:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW7:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW8:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW9:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")
        if message.content == ToxicW10:
            print(f"{client.user} Found Someone Saying A Bad Word :0")
            await message.channel.send(f"Pleas Do Not Say That You Have Been Reported By {client.user}")

def SkIp():
    g4et44 = "w4445hgw4hg095u"

def BotControl(UseThisInChatToTurnOnBotControl):
    @client.event
    async def on_message(message):
        if message.content == UseThisInChatToTurnOnBotControl:
            while True:
                say = input("Enter What Bot Will Say ->")

                if say == ":end:":
                    print(":~:Ended:~:")
                    break
                    quit()


                await message.channel.send(say)
                print(f"{client.user} Said", say)
                print("Someone Said", message.content)


def Chat():
    @client.event
    async def on_message(message):
        #hi
        greet = ["Helloooooo!", "Howdy!", "ok"]
        if "hi" in message.content:
            await message.channel.send(random.choice(greet))
        if "hello" in message.content:
            await message.channel.send(random.choice(greet))
        if "echo" in message.content:
            await message.channel.send("ECHOOO")
        if "Echo" in message.content:
            await message.channel.send("ECHOOO")
        if "i hate you" in message.content:
            await message.channel.send("Right Back At You!")
        if "I Hate You" in message.content:
            await message.channel.send("RIGHT BACK AT YOU!")
        if "i love you" in message.content:
            await message.channel.send("WeirdOOOO")
        if "I Love You" in message.content:
            await message.channel.send("WEIRDOOOOOOOOOOOOOOOOOOOOOOOO")
        if "how" and "day" in message.content:
            good = ["Great!", "Good!", "Awsome!"]
            await message.channel.send(random.choice(good))
        if "How" and "Day" in message.content:
            good = ["Great!", "Good!", "Awsome!"]
            await message.channel.send(random.choice(good))


