Hello there,
I have changed the string for the bot to posting the replys into the current channel and not as a private Message to the user like this:
if(stristr($text, '!name')) {
// KEYWORDS TRIGGER START
$this->insertChatBotMessage(
"Hello! You can change the nickname by using the command /nick NEWNAME."
);
}
Is there any possibility to add the usersname of the user, that entered the trigger? Like:
"Hello, $userName, you can change the nickname by using the command /nick NEWNAME."
Would be great to hear from you :)
Thanks in advance