mIRC Home    About    Download    Register    News    Help

Print Thread
#254752 30/08/15 06:25 PM
Joined: Aug 2015
Posts: 12
A
Airfox Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Aug 2015
Posts: 12
Hey, I want to do an IRC Bot which bans/to people which post something. Like h*tler or http://puu.sh/jU5PH/c3de3a4d48.png. But I dunno how to do it and where I have to put the file for it. Thanks for helping me.

Last edited by Airfox; 30/08/15 06:26 PM.
Airfox #254833 05/09/15 01:23 PM
Joined: Aug 2015
Posts: 12
A
Airfox Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Aug 2015
Posts: 12
//push

Airfox #254834 05/09/15 01:34 PM
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
The event you're looking for is on text.
/help on text
The function you want is ban and kick. Considering that you're using it for twitch you'll have to know how to ban on twitch since it's not the same as mIRC unless you're patiently awaiting Froggie's mTwitch Normalizer.

Then you need to figure out how to catch certain words in a string, best used is Regex which can be read about over here: http://www.regular-expressions.info/ you can use regex in mIRC as an identifier: $regex() or in the actual on text event.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Airfox #254897 08/09/15 09:58 PM
Joined: Sep 2015
Posts: 18
R
Pikka bird
Offline
Pikka bird
R
Joined: Sep 2015
Posts: 18
Yet again I have done this in the past but forgot the script. You could make it where you set it so only people with a value less than 100 can join so you can make it for when your bot kicks them it automatically sets there value to something like 101 so they can't join


Code:
 $I.am.REDxPHOEN 

Code:
 $I.am.THE.one.AND.only 

Code:
 $I.am.THE.best 

Link Copied to Clipboard