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 

add channel from bothub

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


Joined: 26 Apr 2005
Posts: 41

PostPosted: Thu Jan 31, 2013 8:01 am    Post subject: Reply with quote

I like That.

How to make like that?

/msg bothub addchan botleaf #chan


Thanks
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu Jan 31, 2013 8:10 am    Post subject: Reply with quote

Hi,

I've split your post from the original topic as it's quite old and there's no need to revive a dead one if you can make a new one, not to mention that what you wanted is a bit different from what was there. Nevertheless, is the bothub connected to botleaf, are on the same channel or how should the command be transmitted?
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
MasterScript
Halfop


Joined: 26 Apr 2005
Posts: 41

PostPosted: Thu Jan 31, 2013 8:23 am    Post subject: Reply with quote

Thanks
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu Jan 31, 2013 10:11 am    Post subject: Reply with quote

thanks for? answer my question regarding the connection.
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
MasterScript
Halfop


Joined: 26 Apr 2005
Posts: 41

PostPosted: Sun Feb 03, 2013 10:46 pm    Post subject: Reply with quote

Yeap,

Yes, bothub have been connected to botleaf.

BotHub
- Bots1
- Bots2
- Bots3
- Bots4

Command:
addchan - to add bots to channel : /msg BotHub addchan Bots1 #Channel
remchan - to remove bots from channel : /msg BotHub remchan Bots1 #channel

adduser - to add user/staff to BotHub : /msg BotHub adduser usernick flag
deluser - to remove user/staff from BotHub : /msg BotHub deluser usernick
access - to check user/staff access :/msg BotHub access usernick

User Flag:
n- Root Admin (Root)
m - Co Admin (cadmin)
o - Bots Operator (bop)
hp - General Operator(gop)

To add user as Rood Admin:
/msg BotsHub adduser MasterScript root


Thanks
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Mon Feb 04, 2013 3:56 pm    Post subject: Reply with quote

I tested the botnet link for addchan/remchan (and worked) i didnt tested adduser/deluser (but it should work) and i didnt had time to make the access command (when i will find time i will make that to)

Code:

bind MSG n addchan addchan:msg
bind MSG n remchan remchan:msg
bind MSG n adduser adduser:msg
bind MSG n deluser deluser:msg

bind BOT - botnet botnet:bot

proc addchan:msg {nick uhost hand arg} {

   set bot [lindex [split $arg] 0]
   set chan [lindex [split $arg] 1]

   if {[llength $bot] && [llength $chan]} {
      if {[matchattr $bot b]} {
         putbot $bot "BOTNET addchan $chan $nick"
      }
   }
}

proc remchan:msg {nick uhost hand arg} {

   set bot [lindex [split $arg] 0]
   set chan [lindex [split $arg] 1]

   if {[llength $bot] && [llength $chan]} {
      if {[matchattr $bot b]} {
         putbot $bot "BOTNET remchan $chan $nick"
      }
   }
}

proc adduser:msg {nick uhost hand arg} {

   set who [lindex [split $arg] 0]
   set flag [lindex [split $arg] 1]

   if {[validuser [nick2hand $who]]} {
      chattr [nick2hand $who] +$flag

      putserv "PRIVMSG $nick :Succesfully added $who with +$flag"
   } else {
      foreach a [channels] {
         foreach b [chanlist $a] {
            if {$b == $who} {
               adduser $who "*!*@[lindex [split [getchanhost $who $a] @] 1]"
               chattr $who +$flag

               putserv "PRIVMSG $nick :Succesfully added $who with +$flag"
            }
         }
      }
   }
}

proc deluser:msg {nick uhost hand arg} {

   set who [lindex [split $arg] 0]

   if {[validuser [nick2hand $who]]} {
      deluser [nick2hand $who]

      putserv "PRIVMSG $nick :Succesfully deleted $who (hand: [nick2hand $who])"
   } else {
      putserv "PRIVMSG $nick :User $who doesnt exists"
   }
}

proc botnet:bot {from key arg} {

   set chan [lindex [split $arg] 1]
   set nick [lindex [split $arg] 2]

   switch -exact -- [lindex [split $arg] 0] {
      addchan {
         if {![validchan $chan]} {
            channel add $chan

            putbot $from "BOTNET say $chan $nick"
         } else {
            putbot $from "BOTNET validchan $chan $nick"
         }
      }
      remchan {
         if {![validchan $chan]} {
            putbot $from "BOTNET invalid $chan $nick"
         } else {
            channel remove $chan
         }
      }
      validchan {
         putserv "PRIVMSG $nick :$chan is a validchan"
      }
      invalid {
         putserv "PRIVMSG $nick :$chan is not valid"
      }
      say {
         putserv "PRIVMSG $nick :I joined $chan.."
      }
   }
}

_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
MasterScript
Halfop


Joined: 26 Apr 2005
Posts: 41

PostPosted: Tue Feb 05, 2013 5:59 am    Post subject: Reply with quote

Thank you very much.

Do you have any simple same like my tcl?
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Tue Feb 05, 2013 7:34 am    Post subject: Reply with quote

You could try look at a&a script. It has alot of commands

wget wget.ascript.name

Configure bot1.conf/settings.conf/eggdrop.conf

And run the eggdrop

If you have problems let me know
_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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