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 

Uptime contest
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
sauk
Voice


Joined: 05 Jul 2020
Posts: 16

PostPosted: Sun May 22, 2022 4:54 am    Post subject: Reply with quote

You have no idea how grateful I am for the help.
Back to top
View user's profile Send private message
sauk
Voice


Joined: 05 Jul 2020
Posts: 16

PostPosted: Sun May 22, 2022 4:59 am    Post subject: Reply with quote

I got this error when I try !stop.

Quote:
-10:58:22- (Uptime) [09:58:22] Tcl error [::uptime::stop]: can't unset "::uptime::tend": no such variable
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1108
Location: France

PostPosted: Sun May 22, 2022 7:09 am    Post subject: Reply with quote

Ok, source corrected, I changed the way it works when developing and forget that.

To correct that without copy/paste the source, find the following line:
Code:
      unset ::uptime::tend

Replace with:
Code:
      unset ::uptime::tstart


I'll add your two new queries in the day, but it will be the last additions. The script is quite simple, you can now use it (or its parts) as example to add what you want in it.

Edit : the last version is on gitlab
Remind I won't accept new demands for this script.
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
sauk
Voice


Joined: 05 Jul 2020
Posts: 16

PostPosted: Fri Oct 07, 2022 10:54 am    Post subject: Reply with quote

Hey hello again, after some months of using script it works perfectly but has one "error" if we can call it like that.

Sometimes on NetSplits the bot eliminates netsplitted people when they dont deserve to get eliminated cause they didnt disconnect from server and they still voiced and with same uptime on server.

Can that "Error" be fixed somehow?
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1108
Location: France

PostPosted: Sat Oct 08, 2022 9:30 am    Post subject: Reply with quote

Quite complex to do as (I think) a netsplit runs two binds: the SIGN and the SPLT.
I can't provoc netsplits on my network, so I can't test which one called first.

And another difficulty: if someone leaves the channel during the netsplit, how can I manage ?

I'll make some tries but I can't promise I'll have a fix for the script.
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
sauk
Voice


Joined: 05 Jul 2020
Posts: 16

PostPosted: Sat Oct 08, 2022 3:13 pm    Post subject: Reply with quote

CrazyCat wrote:
Quite complex to do as (I think) a netsplit runs two binds: the SIGN and the SPLT.
I can't provoc netsplits on my network, so I can't test which one called first.

And another difficulty: if someone leaves the channel during the netsplit, how can I manage ?

I'll make some tries but I can't promise I'll have a fix for the script.


Maybe checking after split who still voiced.

Thank you for your time.
Back to top
View user's profile Send private message
vam2u
Voice


Joined: 27 Mar 2021
Posts: 30
Location: Malaysia

PostPosted: Sun Apr 23, 2023 10:14 am    Post subject: Reply with quote

I need help, done below but I'm still not able to get the script started.

.chanset +upcontest #my_channel.
Successfully set modes { +upcontest } on #my_channel.
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1108
Location: France

PostPosted: Sun Apr 23, 2023 11:08 am    Post subject: Reply with quote

Did you do !start ?
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
vam2u
Voice


Joined: 27 Mar 2021
Posts: 30
Location: Malaysia

PostPosted: Sun Apr 23, 2023 11:33 am    Post subject: Reply with quote

CrazyCat wrote:
Did you do !start ?


Yes I did in the channel Smile
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1108
Location: France

PostPosted: Mon Apr 24, 2023 4:48 am    Post subject: Reply with quote

If the eggdrop doesn't say "Uptime contest is now running!" when you type !start, there is a trouble with the bind.
Don't you use a script which colorize your line ? or having set your irc client to use colors by default ?
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
vam2u
Voice


Joined: 27 Mar 2021
Posts: 30
Location: Malaysia

PostPosted: Mon Apr 24, 2023 8:32 am    Post subject: Reply with quote

CrazyCat wrote:
If the eggdrop doesn't say "Uptime contest is now running!" when you type !start, there is a trouble with the bind.
Don't you use a script which colorize your line ? or having set your irc client to use colors by default ?


My bad, It's my flag setting Smile
Btw, how do I add a !status to check for current alive and still in the contest users?
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
Goto page Previous  1, 2
Page 2 of 2

 
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