Sponsored Links





Topic Options
Rate This Topic
#2704 - 07/22/08 05:07 PM !kick and !ban Script
usrbingeek Offline

WyldRyde Staff

Registered: 07/31/06
Posts: 612
Loc: Burlington, VT
This script allows your mIRC bot to kick or ban users on your command. This is similar to BotServ Fantasy commands and I strongly suggest you use botserv's fantasy commands in place of this script: /msg botserv set #yourchannel fantasy on


If you still want to use this, first copy this line to your Variables and change the example protectednicks to nicks of users you never want kicked or banned. If you don't have any just leave the variable empty. If you have more then you may add more. All nicks should be separated by a space.
Code:
%nickwhitelist protectednick1 protectednick2 protectednick3



Copy this code to your Remote tab and change #YOURCHANNEL to your channel's name.
Code:
on !*:TEXT:!ban*:#YOURCHANNEL:{
  if (($2 != $me) && (, $+ $2 $+ , !isin %nickwhitelist)) {
    if ($nick isop $chan) {
      if ($3) {
        ban -ku $+ $3 $chan $2 $4-
      }
      if (!$3) {
        msg $nick $2 banned for 300 seconds since you didn't include how many seconds the ban should last.
        ban -ku300 $chan $2
      }
      if (!$2) {
        msg $nick you need to specify a nick! Proper syntax is !ban <nick> <timeinseconds> e.g. !ban nick 300
      }
    }
}
on !*:TEXT:!kick*:#YOURCHANNEL:{
  if (($2 != $me) && (, $+ $2 $+ , !isin %nickwhitelist)) {
    if ($nick isop $chan) {
      if ($3) {
        kick $chan  $2 $3 
        }
      if (!$3) {
        kick $chan  $2 Stop it!
      }
      if (!$2) {
        msg $nick you need to specify a nick! Proper syntax is !kick <nick> <reason> e.g. !kick nick Don't spam
        }
    }
}


The ban script is used by typing !ban nick time
If time isn't include the user will only be banned for 300 seconds. (You may not use this script to permamently ban any user.)

The kick script is used by typing !kick nick reason
If a reason isn't provided, "Stop it!" will be used.

Feel free to edit this script if it doesn't meet your needs.
_________________________
WyldRyde IRC Network
Steve Mermelstein
Root Admin

#!/usr/bin/geek
My Amazon.com Wishlist

Please no PMs. Please post to a topic instead so your question(s) may benefit others.

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#2705 - 07/22/08 05:27 PM Re: !kick and !ban Script [Re: usrbingeek]
jwire4 Offline
Over 50 posts

Registered: 03/18/08
Posts: 55
Loc: Califotnia
nice script! great job as always usrbingeek smile
_________________________
<witty comment here>

Top
#2706 - 07/22/08 05:29 PM Re: !kick and !ban Script [Re: jwire4]
iPhone Offline
Over 100 posts

Registered: 03/08/08
Posts: 117
Loc: New Jersey
I'll try it out.. see if I can get it working... but I think I'll stick to the botserv
_________________________
-Kevin C. Nunez, CEO and Founder of #iPhone on WyldRyde

Top


Recent Posts
Using the word "[censored]"
by UncleJohn
07/02/09 07:34 PM
On Vacation July 3 - July 20 2009
by Brigitte
07/01/09 05:11 PM
User posted ads on twitter
by Bkil
07/01/09 01:03 AM
Live Chat program
by OmniDragon
07/01/09 12:26 AM
Rules for Voiced (+v) users in #Chris
by Alex F.
06/29/09 02:55 AM
Accidental loss of voice
by Pctech37
06/25/09 07:00 PM
Devoiced?
by Fiber
06/25/09 02:12 PM
TwitFeed Twitter RSS Feed Poster for mIRC
by FordLawnmower
06/24/09 10:46 PM
Looking Twitter mIRC Script
by FordLawnmower
06/23/09 10:24 PM
I am sorry about that recent argument Fort
by Chirag
06/23/09 01:39 AM
Hello everyone!
by Karol
06/22/09 05:24 PM
DerekSalem -- Loss of Voice
by DerekSalem
06/19/09 06:57 PM
Recent Pics
This is important!
Newest outcast of my mIRC
ScreenShot of Ford_Lawnmower's mIRC Script
(Views)Popular Topics
Rules for Voiced (+v) users in #Chris 390533
How did you come up with your nickname? 37228
Triggers (like !rules) 20375
What do you guys think the best IRC client is? 19657
Kat 15212
geeks.pirillo.com flash chat code 14018
Recruiting new ops and half ops in #iPhone 12938
Volunteer Half-Op Positions Available In My New Ch 12312
Brag Script 11319
w00t! New stuff is always good! 10974
Who's Online
1 registered (Sargun), 0 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Today's Birthdays
No Birthdays
Top Posters
usrbingeek 612
Kat 343
Phil 168
Justin 138
iPhone 117
Freekie 117
FordLawnmower 107
CCMike 97
iAlex 90
tengrrl 80
Top Posters (30 Days)
Kat 16
Brigitte 14
Bkil 13
Fort 13
Fiber 13
usrbingeek 11
FordLawnmower 9
Freekie 7
CCMike 7
B00 7
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.