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 

AutoVoice Users after time delay

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


Joined: 24 Jun 2011
Posts: 1

PostPosted: Fri Jun 24, 2011 3:34 am    Post subject: AutoVoice Users after time delay Reply with quote

hi can someone provide me a TCL for autovoice users after specific time delay? looking forward from you Smile
Back to top
View user's profile Send private message Visit poster's website
caesar
Ass Kicker


Joined: 14 Oct 2001
Posts: 3401
Location: Area 51

PostPosted: Fri Jun 24, 2011 5:25 am    Post subject: Reply with quote

Delay as in after 10 seconds a user joined the channel voice him/her?
_________________
You may say anything about me, but don't misspell my name.
Back to top
View user's profile Send private message
hrz
Voice


Joined: 21 Jun 2011
Posts: 5
Location: Sweden

PostPosted: Fri Jun 24, 2011 6:06 am    Post subject: Reply with quote

Using a script for that seems silly since Eggdrop already does that natively.
If you set your aop-delay properly and give the user ``+gv'' he will automatically be voiced after a timed delay.
If you're wanting to voice everybody you could add a user with the mast *!*@* and give it the ``+gv'' flags, this wouldn't affect other users as Eggdrop always tries to match the most specific host that exists on the bot to a user.

From `.help chaninfo`:
aop-delay This is used for autoop, autohalfop, autovoice.
If an op or voice joins a channel while another op or
voice is pending, the bot will attempt to put both
modes on one line.
aop-delay 0 No delay is used.
aop-delay X An X second delay is used.
aop-delay X:Y Random delay between X and Y is used.
_________________
#eggtcl on EFNet
http://code.google.com/p/hrz
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
spithash
Master


Joined: 12 Jul 2007
Posts: 245
Location: DALnet, EFnet & Freenode

PostPosted: Fri Dec 13, 2013 4:09 am    Post subject: Reply with quote

Thing is, that the bot will voice a user back if you devoice them Confused
_________________
DALnet #CodeMasters - EFnet #eggtcl Nick: spithash
Click here for troll.tcl


Last edited by spithash on Wed Dec 18, 2013 9:39 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
caesar
Ass Kicker


Joined: 14 Oct 2001
Posts: 3401
Location: Area 51

PostPosted: Fri Dec 13, 2013 9:30 am    Post subject: Reply with quote

Instead of reviving very old topics, why don't you just open your own, or even search?

Anyway, here's a simple one that's using the built-in autovoice channel flag, meaning you just .chanset +autovoice the channel you want it active in. Change the 10 with how many seconds it should delay the command.
Code:

namespace eval voiceJoin {
   bind join - * [namespace current]::add

   proc add {nick host hand chan} {
      if {![channel get $chan autovoice]} return
      if {[isbotnick $nick] || ![botisop $chan]} return
      if {![isvoice $nick $chan]} {
         utimer 10 [list push $chan $nick]
      }
   }

   proc push {chan nick} {
      if {![botisop $chan]} return
      if {[isvoice $nick $chan]} return
      pushmode $chan +v $nick
   }
}

_________________
You may say anything about me, but don't misspell my name.
Back to top
View user's profile Send private message
simo
Master


Joined: 22 Mar 2015
Posts: 204

PostPosted: Sat Mar 25, 2017 5:56 am    Post subject: Reply with quote

i tried using that caesar and got these errors:

using eggdrop 1.8.0

Quote:
Tcl error in script for 'timer158':
invalid command name "push"
Back to top
View user's profile Send private message
SpiKe^^
Master


Joined: 12 May 2006
Posts: 494
Location: Tennessee, USA

PostPosted: Sat Mar 25, 2017 1:22 pm    Post subject: Reply with quote

Try replace this line of code...
Code:
         utimer 10 [list push $chan $nick]


with...
Code:
         utimer 10 [list voiceJoin::push $chan $nick]

_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
Back to top
View user's profile Send private message Visit poster's website
simo
Master


Joined: 22 Mar 2015
Posts: 204

PostPosted: Sat Mar 25, 2017 7:44 pm    Post subject: Reply with quote

that did it thx spike
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 -> 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