mIRC Homepage
Posted By: Sissou cheer - 19/08/16 08:22 AM
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 ^^
Posted By: splinny Re: cheer - 19/08/16 05:27 PM
If cheer10 is "$1", then "$remove($1,cheer)"
Posted By: Sissou Re: cheer - 19/08/16 05:47 PM
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
}
}
© mIRC Discussion Forums