Hi thank you very much.
This is the example:
Code: Select all
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