mIRC Home    About    Download    Register    News    Help

Print Thread
#258720 19/08/16 08:22 AM
Joined: Jul 2015
Posts: 13
S
Sissou Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Jul 2015
Posts: 13
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.
Sissou #258723 19/08/16 05:27 PM
Joined: May 2015
Posts: 249
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
If cheer10 is "$1", then "$remove($1,cheer)"


Dont give a fish - teach to fish!
splinny #258725 19/08/16 05:47 PM
Joined: Jul 2015
Posts: 13
S
Sissou Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Jul 2015
Posts: 13
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