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! Welcome
Hello riahc3! Welcome
Is there a way to do this?
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!
I was a command that takes a OPTIONAL argument.
Have you given it a try?! It does exactly what you’re asking for…
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.