vendredi 5 juin 2020

variable inside a variable for random.choice [closed]

so I am trying to make a discord bot that when you type .skript random it will send a random skript. everything is working except it won't accept the variable "var"

rsk = ['var','skript2','skript3']
var = ['on death of player:|drop 1 nether star named "&7&lSoul" at location of victim']

if message.content.startswith('.skript random'):
    value = random.choice(rsk)
    await message.channel.send(value)



Aucun commentaire:

Enregistrer un commentaire