I want to know how discord.py can store users in variables

Asked 2 years ago, Updated 2 years ago, 54 views

I want to make a game with discode bot

+ Participation saves the user in the variable p1

I want to make the user save in the variable p2 when I type + Participation 2.

How can I store users in variables?

python variable

2022-09-20 17:55

1 Answers

I don't know how to do it because there are no conditions.

If it were me, I would use the following method as the base.

p1 = []
p2 = []
msg = '+Participate'

if msg == '+Participate':
    p1.append ({user})
if msg == '+Participation2'
    p2.append ({user})


2022-09-20 17:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.