mIRC Home    About    Download    Register    News    Help

Print Thread
Streamer shutting bot down #254705 25/08/15 10:36 PM
Joined: Jul 2015
Posts: 18
D
Domd74 Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jul 2015
Posts: 18
I'm not the streamer, I'm just making the bot for the streamer, is there a way that the streamer can shut the bot down? I.e coding ? as it would make it ALOT easier for them.

Re: Streamer shutting bot down [Re: Domd74] #254708 25/08/15 11:34 PM
Joined: Jul 2006
Posts: 3,792
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,792
Well, if you disconnect the bot, they have no way to get it back, same if the bot 'part' the channel, why do they need to shutdown the bot, what would be the purpose? Do they mean to disable the bot, like stop reacting to anything?


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Streamer shutting bot down [Re: Domd74] #254709 26/08/15 01:14 AM
Joined: May 2015
Posts: 133
K
keyeslol Offline
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
Make a seperate remote file, have it unload it via a command.

Something like:

Code:
on *:TEXT:!loadscript:#: { 
/load -rs scripts\test.ini }

and

Code:
on *:TEXT:!unloadscript:#: { 
/unload -rs scripts\test.ini }


twitter @keyeslol
Re: Streamer shutting bot down [Re: keyeslol] #254710 26/08/15 08:44 AM
Joined: Jul 2015
Posts: 18
D
Domd74 Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jul 2015
Posts: 18
Originally Posted By: keyeslol
Make a seperate remote file, have it unload it via a command.

Something like:

Code:
on *:TEXT:!loadscript:#: { 
/load -rs scripts\test.ini }

and

Code:
on *:TEXT:!unloadscript:#: { 
/unload -rs scripts\test.ini }


Ok, I've got that working but how do I make it so only the streamer can do it? smile

Re: Streamer shutting bot down [Re: Domd74] #254712 26/08/15 10:29 AM
Joined: Oct 2014
Posts: 35
M
MattiSony Offline
Ameglian cow
Offline
Ameglian cow
M
Joined: Oct 2014
Posts: 35
You can use:
Code:
 if ($remove(#,$chr(35)) = $nick) { 

This will check if $nick is the same as the channel name :P


Matti