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.

AutoVoice also for not-registered Users?!

Old posts that have not been replied to for several years.
Locked
n
noVa

AutoVoice also for not-registered Users?!

Post by noVa »

Is it possible to give everyone who joins the channel voice, also to those who aren`t registered on eggdrop?

If so, please tell me how!


Greets noVa
_
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Yes it is possible to voice every user who joins a channel.
This should have been actually posted in the tcl scripts section but anyway.

Here is a small example of a tcl script which will auto voice every person who joins a channel.

Code: Select all

#Set the channels on which this script will work
set autovoicechans "#chan1 #chan2 #mychan #yourchan"

bind join - "*" auto:voice

proc auto:voice {nick uhost hand chan}
 global botnick autovoicechans
  if {([lsearch -exact [split [string tolower $autovoicechans]] [string tolower $chan]] != -1)} {
   if {(![string equal -nocase $botnick $nick]) && ([botisop $chan])} {
    pushmode $chan +v $nick; return 0
    }
  }
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
n
noVa

Post by noVa »

hmm...it gives me this:

wrong # args: should be "proc name args body" while executing
"proc auto:voice {nick uhost hand chan}"
(file "scripts/autovoice.tcl" line 6)
invoked from within
"source scripts/autovoice.tcl"
(file "eggdrop.conf" line 264)


Sorry for being dumb, but I cant code in tcl...
Last edited by noVa on Wed Aug 25, 2004 6:50 am, edited 1 time in total.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Ooops!... darn me! I forgot to place the opening "{" (curly bracket) to open the procedure with. :roll:

Here use it now, it should definately work:

Code: Select all

#Set the channels on which this script will work on.
set autovoicechans "#chan1 #chan2 #mychan #yourchan" 

bind join - "*" auto:voice 

proc auto:voice {nick uhost hand chan} {
 global botnick autovoicechans 
  if {([lsearch -exact [split [string tolower $autovoicechans]] [string tolower $chan]] != -1)} { 
   if {(![string equal -nocase $botnick $nick]) && ([botisop $chan])} { 
    pushmode $chan +v $nick; return 0 
    } 
  } 
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
n
noVa

Post by noVa »

Now its time to say thank you ;)![/b]
l
lilGTO
Voice
Posts: 22
Joined: Tue Aug 24, 2004 2:59 pm
Contact:

yessss

Post by lilGTO »

I got to tell ya this .tcl is great... you got one for having a bot dcc send you a return???

thanks in advance
lilGTO
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Well its the basics of tcl coding mainly, not really an effort at my level if you say so. :mrgreen:

As for the "DCC send in return?" DCC send what? :-?
I didn't clearly understand what you meant by that statement. :roll:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
l
lilGTO
Voice
Posts: 22
Joined: Tue Aug 24, 2004 2:59 pm
Contact:

dcc send problems...

Post by lilGTO »

well so many people have problems with DCC chat whereas they dcc someone and when the other person trys to acknowledge it doesn't work. The receiving person initiates their own dcc chat and it work...hence the ability to receive and not send. This happens with so many people in ALL the rooms it is unbelievable really. So, if you are a bot owner and have the same problems you feel like you are stuck. Using this:

putserv "PRIVMSG $nick :\001DCC CHAT chat [myip] $userport\001"

seemed to work for me for a while until i did what i should have done in the first place, ask the shell provider which port are available... they do vary and are not really reflected in the eggdrop setup...I found that people just flat don't read when they log into their shell accounts....

Actually, the setup files should stipulate to check with each shell provider if they have problem finding a right port to specify by asking the right question, which is:
"Which ports are not being used by other bot owners"

Oh well just my two cents worth...

lilGTO
Locked