Top

Botoff


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  1.0 (of 1 scores)
Date Added  May 31, 2007
Last Updated  May 31, 2007
Tags  bot  botoff  off 

Introduction

Very, very simple snippet

All it is is you can make a list of admins or mods for your bot and when they type
!botoff
It'll turn your bot off

Of course there is no
!boton
feature because when you type !botoff it disables all of your scripts ;p

Also by getting rid of

if ($nick == NICK) || ($nick == NICK1) || ($nick == NICK2) {

Then anyone can type !botoff
Which is not advised

Also to turn your bot back on just type
/remote on


And also remember to change NICK, NICK1, NICK2, NICK3!

And to add more people to the list of peple allowed that command add
if ( $nick == NICK ) {
Right before the line
remote off

And to get rid of one or more just get rid of an
if ( $nick == NICK ) {
line

Grab the Code

on *:text:!botoff*:#: {
  if ($nick ==  NICK) || ($nick == NICK1) || ($nick == NICK2) {
  remote off
}

Comments

  (8)  RSS
dmdifiore
Comments: 8
 
mIRC Snippet:  Botoff
Posted on May 31, 2007 8:48 am
My first comment ^.^

Anyways, on my bot, I set groups on each script, and use a group on/off event that turns things on and off.

This way, I can set user levels for people that I want to control the bot, and also make it turn on and off. Just don't put your on/off part in a group.
dmdifiore
Comments: 8
 
mIRC Snippet:  Botoff
Posted on May 31, 2007 8:53 am
on 10:text:!bot on:*:{
enable #*
msg # Bot On
}

on 10:text:!bot off:*:{
disable #*
msg # Bot Off
}
Pass
Comments: 53
 
mIRC Snippet:  Botoff
Posted on May 31, 2007 1:58 pm
You're missing a closing bracket
|MELIORITE|
Comments: 146
 
mIRC Snippet:  Botoff
Posted on May 31, 2007 9:30 pm
I'm wondering why you would want to turn all your bot scripts off and still have it on line when you could not turn it on again... its probably better to just make your bot quit the server. As dmdlflore suggests, grouping scripts is good because then you can turn off collected features, for example, turn off all the reactive and speech modes when they get annoying and leave protections on. Also, have access levels to the bot is important, as also suggested. I cannot see any practical application for this snippet.
Aile
Comments: 12
 
mIRC Snippet:  Botoff
Posted on May 31, 2007 9:53 pm
Hmm that could be handy.. but once remotes are off the person cant turn them back on lol.. I suggest using a var on every script you have such as;
on *:text:!bot off:#:{
if ($nick == NICK) || ($nick == NICK1) || ($nick == NICK2) {
set %off enabled
}
}
on *:text:!bot on:#:{
if ($nick == NICK) || ($nick == NICK1) || ($nick == NICK2) {
unset %off
}
}
And place this in all scripts;
if (%off == enabled) { halt }
elseif { your script here
}
Just a thought this requires more work tho :)
nyfi
Comments: 9
 
mIRC Snippet:  Botoff
Posted on Jun 7, 2007 7:24 pm
You might like to put better security on that tbh,
try making a .txt with called botadmin.txt with yours and your bot admin hostmasks the put "If ($address($nick,2) isin $read(botadmin.txt)) {"
it will make sure people cant just go onto the other admins nick names and just use that command.
Nomader
Comments: 5
 
mIRC Snippet:  Botoff
Posted on Jun 28, 2007 5:35 pm
You could actually make it so you could do a bot on command...just make a new section to reverse the effects of bot off and start it with

on *:text:!boton*:?:
Trav
Comments: 16
 
mIRC Snippet:  Botoff
Posted on Jun 28, 2007 6:05 pm
Nomader, I couldn't, because the remotes would be off.

But I made a new script where you type !botoff #ofseconds
And it sets a timer

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom