Hello,
Happy New Year 2018 even it's been a while though!
I'm asking for help with my counter coding:
!meow alone works, but when adding a second parameters, it doesn't respond. Like !meow 2 (or any other number).
1. You type !meow X (X = number)
2. Script triggers and sends message in chat "Meows have been given. Use !meowcounter to see how many meows have been given.
3. !meowcounter to see how many meows have been given.
on *:TEXT:!meow:#: {
if ($nick isop #) {
if ($2 isnum) {
%meow.times = $calc(%meow.times + $2) | .msg $chan Meows have been given. Use !meowcounter to see how many meows have been given.
%meowtotal.times = $calc(%meowtotal.times + $2)
return
}
inc %meow.times | .msg $chan A meow has been given. Use !meowcounter to see how many meows have been given.
inc %meowtotal.times
}
}
Thank you in advance!
Furiny