riahc3
1
I want to create a custom command with a optional argument and if not, it takes a default command.
For example (my user is riahc3)
!hello user
Bot replies:
Hello user! Welcome
!hello
Bot replies:
Hello riahc3! Welcome
Is there a way to do this?
Emily
2
Hey @riahc3!
I’m not sure I understand fully what you’re looking for, but hopefully using $(touser)
is what you need:
!addcom hello Hello $(touser)! Welcome!
riahc3
3
Mmmmm
I was a command that takes a OPTIONAL argument.
!hello
Would reply
Hello riahc3!
!hello anotheruser
Would reply
Hello anotheruser!
Emily
4
Have you given it a try?! It does exactly what you’re asking for…
system
Closed
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.