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?
Hey @Jolly Kangaroo!
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!