New commands that i add to my bot dont work - 12/01/19 05:02 AM
Ok so when i add a command in one stream it doesnt work, but when i do it in other chats it works perfectly so is there a reason why its doing that?
on *:TEXT:matchwildtext:#channel1,#channel2:{ code shared by both channels if ($chan == #channel1) { code for #channel1 } if ($chan == #channel2) { code for #channel2 return } :end code shared by both channels }
on *:text:*shout me out*:#troyl, #agony:{ ; check if user is not warned yet if !$istok(%fd.warned,$nick,32) { ; warning user describe $chan @ $+ $nick -> rooBot No Asking For Shoutouts! [warning] msg $chan /timeout $nick 5 asking for shoutout [warning] [Automated By TroyBot] ; add user to %caps.warned, so we can check it later set -e %fd.warned $addtok(%fd.warned,$nick,32) ; set timer to remove user from %caps.warned after 300s .timer 1 120 /unset %fd.warned $nick } else { ; so user is already warned.. describe $chan @ $+ $nick No Asking for shoutouts. bingMad msg $chan /timeout $nick 300 Asking For shoutouts After Being Warned [Automated By TroyBot] } }
.timer 1 120 set -e %fd.warned $!deltok(%fd.warned,$nick,32)
on *:text:*follow me*:#troyl:{ ; check if user is not warned yet if ($nick isOP #) { return } if !$istok(%fm.warned,$nick,32) { ; warning user var %w $rand(1,5) if (%w == 1) describe $chan @ $+ $nick -> rooBot No Self Promo! [warning] elseif (%w == 2) describe $chan @ $+ $nick -> rooBot Hey! I can do this all day pal [warning] elseif (%w == 3) describe $chan @ $+ $nick -> rooBot What are you on about? [stop self promoting] [warning] elseif (%w == 4) describe $chan @ $+ $nick -> rooBot You're mistaken [stop self promoting] [warning] elseif (%w == 5) describe $chan @ $+ $nick -> cmonBruh [stop self promoting] [warning] msg $chan /timeout $nick 1 Self Promo [warning] [Automated By TroyBot] ; add user to %caps.warned, so we can check it later set -e %fm.warned $addtok(%fm.warned,$nick,32) ; set timer to remove user from %caps.warned after 300s .timer 1 120 /unset %fm.warned $nick } else { ; so user is already warned.. var %b $rand(1,5) if (%b == 1) describe $chan @ $+ $nick -> I tried to warn you [stop self promoting] elseif (%b == 2) describe $chan @ $+ $nick -> Maybe you should just sit out for a bit [stop self promoting] elseif (%b == 3) describe $chan @ $+ $nick -> Come back in 5 minutes [stop self promoting] elseif (%b == 4) describe $chan @ $+ $nick -> Ya, lets not do that. Enjoy your timeout [stop self promoting] elseif (%b == 5) describe $chan @ $+ $nick -> I can do this all day buddy [stop self promoting] msg $chan /timeout $nick 300 Self Promoting After Being Warned [Automated By TroyBot] } }