mIRC Home    About    Download    Register    News    Help

Print Thread
#258720 19/08/16 08:22 AM
S
Sissou
Sissou
S
Hello,

Is it possible to take a part of a word?
With the new twitch system, cheer for give bits, we must put in the chat "cheerXX" (xx for the number of bits"

Is it possible to make a message with my bot when a user gives cheer.

Example:
User: cheer10
bot: $nick gives 10 bits, thanks"

The number is random by the user, he cans put 10, 1, or any want number of his choice.

Thanks if you can help me ^^

Last edited by Sissou; 19/08/16 08:22 AM.
#258723 19/08/16 05:27 PM
Joined: May 2015
Posts: 245
S
Fjord artisan
Offline
Fjord artisan
S
Joined: May 2015
Posts: 245
If cheer10 is "$1", then "$remove($1,cheer)"

splinny #258725 19/08/16 05:47 PM
S
Sissou
Sissou
S
Hum, I'll try thanks.

EDIT: It works thanks you.
I've make this:

Quote:
on *:text:cheer*:#: {
var %cheer = $remove($1,cheer)
if ($1 == cheer1) {
msg # $nick gives %cheer bit
}
else {
msg # $nick gives %cheer bits
}
}

Last edited by Sissou; 19/08/16 06:02 PM.

Link Copied to Clipboard