Feb-27-2021, 04:02 AM
can someone please tell me how to fix this im lost here and not very good with code
import random from random import randint import discord TOKEN = '' client = discord.Client() @client.event async def on_message(message): if message.author == client.user: return s_nouns = ["A dude", "My mom", "The king", "Some guy", "A cat with rabies", "A sloth", "Your homie", "This cool guy my gardener met yesterday", "Superman"] p_nouns = ["These dudes", "Both of my moms", "All the kings of the world", "Some guys", "All of a cattery's cats", "The multitude of sloths living under your bed", "Your homies", "Like, these, like, all these people", "Supermen"] s_verbs = ["eats", "kicks", "gives", "treats", "meets with", "creates", "hacks", "configures", "spies on", "retards", "meows on", "flees from", "tries to automate", "explodes"] p_verbs = ["eat", "kick", "give", "treat", "meet with", "create", "hack", "configure", "spy on", "retard", "meow on", "flee from", "try to automate", "explode"] infinitives = ["to make a pie.", "for no apparent reason.", "because the sky is green.", "for a disease.", "to be able to make toast explode.", "to know more about archeology."] while true: messageresponse = (s_nouns[randint(0, len(s_nouns))]+" "+p_verbs[randint(0, len(p_verbs))]+" "+infinitives[randint(0, len(infinitives))] if message.content == 'hello': response=(messageresponse) await message.channel.send(response) @client.event async def on_ready(): print('good to go') client.run(TOKEN)