mIRC Home    About    Download    Register    News    Help

Print Thread
#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.

Joined: Jul 2006
Posts: 4,146
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,146
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?


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: May 2015
Posts: 133
K
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
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

Joined: Oct 2014
Posts: 35
M
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

Link Copied to Clipboard