| View previous topic :: View next topic |
| Author |
Message |
MasterScript Halfop
Joined: 26 Apr 2005 Posts: 41
|
Posted: Fri Jan 11, 2013 4:03 pm Post subject: Help with botnet addchan |
|
|
Hi,
How to make a script for this:
$botnetnick= Master
/msg master addchan botnick #chan
botnick (leaf) is a bots was llinked to Master. Which mean all command must send message to master as a hub bot. For example to add some bots to channel, use that command.
/msg master addchan TriaviaBot #Games
/msg master remchan TriaviaBOT #Games Reason
Act...
Sorry for my english...
Thanks |
|
| Back to top |
|
 |
darksis Voice
Joined: 04 Aug 2012 Posts: 16
|
Posted: Sat Jan 12, 2013 3:00 am Post subject: |
|
|
you can inside to DCC chat with your Bot and write
and if you want remove chan write
Good luck  |
|
| Back to top |
|
 |
MasterScript Halfop
Joined: 26 Apr 2005 Posts: 41
|
Posted: Sat Jan 12, 2013 4:57 am Post subject: |
|
|
Hi thank you very much.
This is the example:
| Code: | proc addchan {nick bmc1 host handle} {
global botnick home defchanoptions defchanmodes bcast
if {$bmc1 == ""} {
putquick "NOTICE $nick :\0034ERROR - Invaild Syntax - Should Be - (/msg) $botnick addchan <#channel>"
return 0
} elseif {[validchan $bmc1]} {
putquick "NOTICE $nick :\0034ERROR - Channel Currently Exsists - The channel $bmc1 is currently in channel partition."
return 0
} elseif {[string match "#*" $bmc1]} {
channel add $bmc1 $defchanmodes
putlog "!$nick ($host)! addchan $bmc1"
putquick "NOTICE $nick :\0033Sucessfully added $botnick to $bmc1"
if {$bcast == "1"} {
putquick "PRIVMSG $home :\002$nick\002 ($host) requested me to addchan \002$bmc1\002 into my channel partition."
}
channel set $bmc1 -clearbans +enforcebans -dynamicbans +userbans +autoop -bitch +greet -protectops +statuslog -stopnethack -revenge +autovoice -secret -shared +cycle
save
return 0
} else {
# Invalid channel name...
putquick "NOTICE $nick :\0034ERROR - Illegal Channel Name - Try adding a # in front of the name (eg. #masterscript)"
putquick "NOTICE $nick :\00312Note - This bot does not support local (channel names preceeded with a +) or Microsoft-style (channel names without a preceding character) chatrooms."
return 0
}
}
|
Command we use here is: /msg bothub addchan #channel-name
Ex: /msg bothub addchan #masterscript
What we want is : /msg bothub addchan botname #channel-name
Ex: /msg bothub addchan LoveBots #masterscript
also with remchan:
/msg bothub remchan botname #channel-name reason
Ex: /msg bothub remchan LoveBots #masterscript Fake channel
other commands also same commands is:
reop : /msg bothub reop Botname #channel-name
rehash : /msg bothub rehash Botname
Cycle : /msg bothub cycle Botname #channel-name
chanstats: /msg bothub chanstats botname
fmode: /msg bothub fmode Botname #channel-name Modes
banlist: /msg bothub banlist Botname #channel-name
ban: /msg bothub ban Botname #channel-name Ban Mask
unban: /msg bothub unban Botname #channel-name Ban Mask
Thanks |
|
| Back to top |
|
 |
|