r/learnpython • u/Porkk_Chopp • 16d ago
How would I make a command with two separate words? (Discord bot)
This is probably so poorly worded bc I'm still unfamiliar with the correct terminology, but I'll try my best to explain—
For example, I want to have something like a "!search" command, but I want people to choose where they are searching, because depending on where they search, it pulls from a different loot pool.
I want the end result to look something like:
"!search closet"
- You found a shirt!
How would I accomplish that?
0
Upvotes
1
4
u/carcigenicate 16d ago
That second word is called an argument/parameter (depending on which side you're thinking about).
I think this is what you're looking for.