Get Help

Create A Simple mIRC Bot

View step by step tutorials and workshops so you can learn how to use every feature on Ustream or make the most of your Ustreaming experience!

Create A Simple mIRC Bot

Postby Teressa » Sat May 15, 2010 11:32 am

Following has just the basic commands. If you want something more advanced, then google around or visit sites like http://www.hawkee.com that have script collections:

ban(kickban) command: !ban USERNAME

on *:text:!ban*:#: { if ($nick == NICKNAMEHERE) mode $chan +b $address($2,2) | kick $chan $2- }

kick command: !kick USERNAME

on *:text:!kick*:#: { if ($nick == NICKNAMEHERE) kick $chan $2- }

****you can replace "if ($nick == NICKNAMEHERE)" with "if ($nick isop $chan)" or "if ($nick ishop $chan)" or combine them "if ($nick isop $chan || $nick ishop $chan )" (isop means that user is a moderator (@ infront of the nickname) and ishop means that the person is half-op in the channel (% infront of the nickname))


Muting a user: they can't talk, until someone unmute's them:

on *:text:!mute*:#:{ if ($nick isop $chan || $nick ishop $chan ) { mode $chan +b-ohv ~q: $+ $address($2,2) $2 $2 $2 } }
on *:text:!unmute*:#:{ if ($nick isop $chan || $nick ishop $chan ) { mode $chan -b+v ~q: $+ $address($2,2) $2 } }

Muting a user for a period of time: !mute nickname timeinseconds

on *:text:!mute*:#:{ if ($nick isop $chan || $nick ishop $chan ) { mode $chan +b-ohv ~q: $+ $address($2,2) $2 $2 $2 | /timer 1 $3- mode $chan -b+v ~q: $+ $address($nick,2) $2 } }


Auto-remove: will remove the line from the flash client when a pre-set word is said

on *:text:* WORD *:#: notice $chan REMOVE $nick $2-

word triggers: !email, !website, .....

on *:text:!word:#: .msg $chan text

If you want the bot to say something whenever the word is said, then:

on *:text:* word *:#: .msg $chan text

To make a Welcome message:

ON *:JOIN:#: { if ($chan = #YOURCHANNELNAME) .msg $chan text here and if you want to add the users nickname add $nick to the text }

If you want it PM'd to the person change .msg $chan with .msg $nick

TO change topic

on *:text:!topic*:#: { if ($nick isop $chan || $nick ishop $chan ) { topic $chan $2- } }

again you can change it to: if ($nick == NICKNAMEHERE)

kick when someone says the trigger

on *:text:*TRIGGER*:#: kick $chan $nick

ban when someone says the trigger

on *:text:*TRIGGER*:#: { mode $chan +b $address($nick,2) | kick $chan $nick }

timed mute, when a trigger word is said:
300 = 5 minutes, to change the time period, just replace 300 with a different number of seconds.

on *:text:*TRIGGER*:#: { mode $chan +b-v ~q: $+ $address($nick,2) $nick | /timer 1 300 mode $chan -b+v ~q: $+ $address($nick,2) $nick }

Workshop credit goes to tehWKD
Teressa
Senior HelpOp
Senior HelpOp
 
Posts: 57
Joined: Thu May 13, 2010 9:40 pm

Sponsored Links

Postby Sponsored Links » Fri Aug 27, 2004 12:01 am


Sponsored Links
VP of Marketing
 
Posts: 10100
Joined: Fri Aug 27, 2004 12:01 am
Location: Mountain View, CA

Return to Tutorials and Workshops

Who is online

Users browsing this forum: No registered users and 3 guests