egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with botnet addchan

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
MasterScript
Halfop


Joined: 26 Apr 2005
Posts: 41

PostPosted: Fri Jan 11, 2013 4:03 pm    Post subject: Help with botnet addchan Reply with quote

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
View user's profile Send private message
darksis
Voice


Joined: 04 Aug 2012
Posts: 16

PostPosted: Sat Jan 12, 2013 3:00 am    Post subject: Reply with quote

you can inside to DCC chat with your Bot and write
Code:

.+chan #Trivia

and if you want remove chan write
Code:

.-chan #Trivia

Good luck Smile
Back to top
View user's profile Send private message
MasterScript
Halfop


Joined: 26 Apr 2005
Posts: 41

PostPosted: Sat Jan 12, 2013 4:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber