Command call another Command

i’am new to nightbot and i read the FAQ and Tutorials but i dont get it.

i have to commands

  1. !tea
  2. !tea2

if i enter !tea in my channel i want that nightbot call !tea and also !tea2. how can i do this?

Best regards

You can use aliases to call other commands. However you can only call one command and you cannot call a command that has an alias (protect from looping). Examples:

!commands add !hello Hello there!
!commands add !hi -a=!hello $(query)

Something is required in the message for !hi command so I just use a $(query), despite it having no use in the !hello command.

User: !hello
Nightbot: Hello there!
User: !hi
Nightbot: Hello there!

Nice - thanks. got this working on YTG as !addcom !snapchat -a=!social $(query)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.