I'm trying to make a command that can display a random hex code with a command such as %randhex, but so far no luck. Does anyone know how I can do this? I tried doing something like this but with individual codes but there are too many: @client.command(pass_context=True) async def randcolor(ctx): variable = [ "blue", "red", "green", "yellow", "purple", "orange", "white", "black", "violet", "brown", "aqua", "cyan", "maroon", "grey"] await client.say(ctx.message.channel, "{}".format(random.choice(variable)))
Aucun commentaire:
Enregistrer un commentaire