I am making a Russian roulette function on my discord bot. You enter a list of players and it bans one of them.
Here is some pseudo-code I wrote:
elif message.content.startswith("!Russian"):
l = []
l.append(input("Enter a name"))
l.append(input("Enter a name"))
l.append(input("Enter a name"))
l.append(input("Enter a name"))
l.append(input("Enter a name"))
l.append(input("Enter a name"))
playertoban = l[random.randint(1, 6)]
ban(playertoban) #I wanna make a function that bans playertoban for one day
Note: It should only ban one of the players for only one day.
Thanks in advance!
Regards Mike.
Aucun commentaire:
Enregistrer un commentaire