mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2015
Posts: 19
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Aug 2015
Posts: 19
Im sure something like this is posted before but lets get to the point: im streaming a game called geometry dash and sometimes i do level requests which users post their level id in chat and i try their levels, but sometimes i have level requests off and they still post their ids and its really fucking annoying. The ids are 8,7 and 6 digit numbers so i want my bot to time out people that posts anything with a 6 7 or 8 digit number. An example id is 11468891

Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
try this

Code:
on *text:*:#:{
if ($regex($1-,/\d{6}?\d?\d)/) { do something }
}

Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
Code:
on $*:TEXT:/\d{6,8}/:#:{
  ;; do stomething
}

Last edited by FroggieDaFrog; 08/11/15 01:29 AM.

I am SReject
My Stuff
Joined: May 2015
Posts: 133
K
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
For twitch i'd recommend the on *:text:*:# as you can read in msgtags.


twitter @keyeslol

Link Copied to Clipboard