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 Users after time delay

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
m
mhamid
Voice
Posts: 1
Joined: Fri Jun 24, 2011 3:14 am
Contact:

AutoVoice Users after time delay

Post by mhamid »

hi can someone provide me a TCL for autovoice users after specific time delay? looking forward from you :)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
User avatar
hrz
Voice
Posts: 5
Joined: Tue Jun 21, 2011 4:47 pm
Location: Sweden
Contact:

Post by hrz »

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.
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

Thing is, that the bot will voice a user back if you devoice them :?
Last edited by spithash on Wed Dec 18, 2013 9:39 am, edited 1 time in total.
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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: Select all

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.
s
simo
Revered One
Posts: 1106
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

i tried using that caesar and got these errors:

using eggdrop 1.8.0
Tcl error in script for 'timer158':
invalid command name "push"
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

Try replace this line of code...

Code: Select all

         utimer 10 [list push $chan $nick] 
with...

Code: Select all

         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
.
s
simo
Revered One
Posts: 1106
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

that did it thx spike
Post Reply