| View previous topic :: View next topic |
| Author |
Message |
mhamid Voice
Joined: 24 Jun 2011 Posts: 1
|
Posted: Fri Jun 24, 2011 3:34 am Post subject: AutoVoice Users after time delay |
|
|
hi can someone provide me a TCL for autovoice users after specific time delay? looking forward from you  |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Fri Jun 24, 2011 5:25 am Post subject: |
|
|
Delay as in after 10 seconds a user joined the channel voice him/her? _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
hrz Voice

Joined: 21 Jun 2011 Posts: 5 Location: Sweden
|
Posted: Fri Jun 24, 2011 6:06 am Post subject: |
|
|
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 |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Fri Dec 13, 2013 4:09 am Post subject: |
|
|
Thing is, that the bot will voice a user back if you devoice them  _________________ Libera ##rtlsdr & ##re - 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 |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Fri Dec 13, 2013 9:30 am Post subject: |
|
|
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
}
}
|
_________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Sat Mar 25, 2017 5:56 am Post subject: |
|
|
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 |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Sat Mar 25, 2017 1:22 pm Post subject: |
|
|
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
or visit the New Tcl Acrhive at www.tclarchive.org
. |
|
| Back to top |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Sat Mar 25, 2017 7:44 pm Post subject: |
|
|
| that did it thx spike |
|
| Back to top |
|
 |
|