This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Help with botnet addchan

Help for those learning Tcl or writing their own scripts.
Post Reply
M
MasterScript
Halfop
Posts: 41
Joined: Tue Apr 26, 2005 1:44 am

Help with botnet addchan

Post by MasterScript »

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
d
darksis
Voice
Posts: 16
Joined: Sat Aug 04, 2012 8:17 am

Post by darksis »

you can inside to DCC chat with your Bot and write

Code: Select all

.+chan #Trivia
and if you want remove chan write

Code: Select all

.-chan #Trivia
Good luck :)
M
MasterScript
Halfop
Posts: 41
Joined: Tue Apr 26, 2005 1:44 am

Post by MasterScript »

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
Post Reply