Menu

Learn how to join our server
and start playing in 60 seconds
Play Now
CLICK TO JOIN JOIN OUR DISCORD
0
0

Hey anyone know Python?

Joined
August 14, 2020
Messages
2,106
Points
249
Age
20
IGN
not_Nuggets
Hey so I need some help..

Specifically with discord.py, the Python Wrapper for Discord!

I am making a bot, and need to get something from a JSON database

1614861649872.png

this is my players.json file, where when someone uses a command, Ex: =command funni

it saves "funni" with their id.

and I am creating a command that requires the name (funni), however I cannot figure out how to do that.


1614861751075.png


so I have this code, and before you tell me some of it is wrong, I know that

the var lol is wrong, as it clearly gets the member id.

However, how can I get the name (funni)

Thanks in advance
 
  • Pensive
Reactions: Yuu
Hey so I need some help..

Specifically with discord.py, the Python Wrapper for Discord!

I am making a bot, and need to get something from a JSON database

View attachment 13181

this is my players.json file, where when someone uses a command, Ex: =command funni

it saves "funni" with their id.

and I am creating a command that requires the name (funni), however I cannot figure out how to do that.


View attachment 13182


so I have this code, and before you tell me some of it is wrong, I know that

the var lol is wrong, as it clearly gets the member id.

However, how can I get the name (funni)

Thanks in advance
Ask Pace
 

Top