mIRC Homepage
Posted By: Domd74 Streamer shutting bot down - 25/08/15 10:36 PM
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.
Posted By: Wims Re: Streamer shutting bot down - 25/08/15 11:34 PM
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?
Posted By: keyeslol Re: Streamer shutting bot down - 26/08/15 01:14 AM
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 }
Posted By: Domd74 Re: Streamer shutting bot down - 26/08/15 08:44 AM
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
Posted By: MattiSony Re: Streamer shutting bot down - 26/08/15 10:29 AM
You can use:
Code:
 if ($remove(#,$chr(35)) = $nick) { 

This will check if $nick is the same as the channel name :P
© mIRC Discussion Forums