Forum

Error in time.tcl
 
Notifications
Clear all

[Solved] Error in time.tcl

Page 1 / 2

Thomas Halfdaner
(@taxick)
Active Member
Joined: 3 weeks ago
Posts: 12
Topic starter  

Hi

I have bought "time.tcl" but I get it to work! I get a error when I run the the !time command..

I have activated it with ".chanset #futurenode +time"

When I run "!time dk" - i get this error in the console

[1402] Tcl error [time error flushing "sock55a8c52477b0": software caused connection abort

I hope for some help!

Here is my config in time.tcl

 

###
# Cmdchar trigger
# - set here the trigger you want to use.
###
set time(cmd_char) "!"


###
#SET DEFAULT LANGUAGE (can use : en, ro, fr, it, bg, es ..)
set time(default_lang) "en"

###
#CITIES TO SHOW ON TIMER (each city time will be shown after each timer)
set time(timer_locations) {
	"Paris"
	"London"
	"New York"
}

###
#TIMER TIME TO SHOW (minutes)
set time(timer_time_interval) "60"

###
#SET DEFAULT LOCATION FOR THE TIME TO BE SHOWN (if NOT SET)
set time(default_location) "Copenhagen"

###
# User db file
# - specifies the file where all users locations and languages are stored.
###
set time(user_file) "scripts/time.userinfo.txt"

#Set here the type of hostname for users
#1 - *!*@$host
#2 - *[email protected]$host
#3 - [email protected]$host
#4 - $user!*@*
#5 - *[email protected]*
set time(user_host_type) "1"

###
# FLOOD PROTECTION
#Set the number of minute(s) to ignore flooders, 0 to disable flood protection
###
set time(ignore_prot) "1"

###
# FLOOD PROTECTION
#Set the number of requests within specifide number of seconds to trigger flood protection.
# By default, 3:10, which allows for upto 3 queries in 10 seconds. 3 or more quries in 10 seconds would cuase
# the forth and later queries to be ignored for the amount of time specifide above.
###
set time(flood_prot) "4:10"

Quote
Topic Tags
Thomas Halfdaner
(@taxick)
Active Member
Joined: 3 weeks ago
Posts: 12
Topic starter  

BTW.. Im running:

  • Eggdrop 1.9.1
  • tclsh 8.6
  • Ubuntu 20.04

 

This post was modified 3 weeks ago by Thomas Halfdaner

ReplyQuote
BLaCkShaDoW
(@blackshadow)
Member Admin
Joined: 1 year ago
Posts: 108
 

I will check the tcl and return a feedback


ReplyQuote
Thomas Halfdaner
(@taxick)
Active Member
Joined: 3 weeks ago
Posts: 12
Topic starter  

@blackshadow Thanks - Sounds great


ReplyQuote
BLaCkShaDoW
(@blackshadow)
Member Admin
Joined: 1 year ago
Posts: 108
 

Issues solved. Download it again from Purchase history menu.


ReplyQuote
Thomas Halfdaner
(@taxick)
Active Member
Joined: 3 weeks ago
Posts: 12
Topic starter  

Hi 🙂

Thanks for the update.

I have to try to run the new version.

But if I run "time dk" or "time en" I get this error: No time data for dk / en

No time data for en

[1334] <~Taxick> !time dk
[1335] -Anne- No time data for dk

I have also try to run 

[1322] <~Taxick> !time en
[1323] -Anne- No time data for en

Any fix for that?

I have try to rehash the bot and restart it to

EDIT.. 

I have tried to use "!time Copenhagen" - the same error

This post was modified 3 weeks ago 3 times by Thomas Halfdaner

ReplyQuote
BLaCkShaDoW
(@blackshadow)
Member Admin
Joined: 1 year ago
Posts: 108
 

# !time - show time details for location ##
## !time set - set your default location ##
## !time lang <2 letter lang> - set your default language

!time new york

!time chicago

!time united kingdom or UK

To get the time

!time set en (set english language)

               fr (french)

and so on

<BLaCkShaDoW> !time new york
<WorkLinux> [T] Time in New York, United States now
<WorkLinux> [T] 0335,Friday, October 1, 2021, week 39 --- World Vegetarian Day / International Day of Older Persons / National Day of China / National Day of Nigeria https://worldvegetarianday.org/

This post was modified 3 weeks ago by BLaCkShaDoW

ReplyQuote
Thomas Halfdaner
(@taxick)
Active Member
Joined: 3 weeks ago
Posts: 12
Topic starter  

Did not work for me! Did i miss some files?

I has try these commands!

[1401] <~Taxick> !time new york
[1402] -Anne- No time data for new york

[1430] <~Taxick> !time chicago
[1431] -Anne- No time data for Chicago

EDIT: 

[1440] <~Taxick> !time set en
[1441] -Anne- Set your time LOCATION to: en
[1447] <~Taxick> !time
[1448] -Anne- No time data for en
This post was modified 3 weeks ago by Thomas Halfdaner

ReplyQuote
Thomas Halfdaner
(@taxick)
Active Member
Joined: 3 weeks ago
Posts: 12
Topic starter  

@BLaCkShaDoW

Any fix?


ReplyQuote
BLaCkShaDoW
(@blackshadow)
Member Admin
Joined: 1 year ago
Posts: 108
 

do you have tls and http packages installed ?

if yes, can you test the script on another eggdrop that is on another server ? I think the eggdrop cant access the website.


ReplyQuote
Thomas Halfdaner
(@taxick)
Active Member
Joined: 3 weeks ago
Posts: 12
Topic starter  

@blackshadow

Hi

Thanks for the reply. 

Can you tell me how to install http and TLS. 

It will help me a lot

Ubuntu 20.04 


ReplyQuote
BLaCkShaDoW
(@blackshadow)
Member Admin
Joined: 1 year ago
Posts: 108
 

Http.tcl its available in Download secțion. Just be carefull to load it before the time.tcl script. To install tls use the command sudo apt install tcl-tls


ReplyQuote
Thomas Halfdaner
(@taxick)
Active Member
Joined: 3 weeks ago
Posts: 12
Topic starter  

@blackshadow

tcl-tls is already the newest version (1.7.20-1).

I have also downloaded the http.tcl from https://tclscripts.net/downloads/553/

From my eggdrop config

# Use this script for Tcl and Eggdrop backwards compatibility.
# NOTE: This can also cause problems with some newer scripts.
source scripts/compat.tcl
source scripts/http.tcl
source scripts/BlackRSS.tcl
source scripts/time.tcl
source scripts/topconnect.tcl
source scripts/tvmaze.tcl
[1656] <~Taxick> !time new york
[1657] -Anne- No time data for new york

What can be wrong??


ReplyQuote
Thomas Halfdaner
(@taxick)
Active Member
Joined: 3 weeks ago
Posts: 12
Topic starter  

I have try the script on another server, and i still have the same problem :/


ReplyQuote
BLaCkShaDoW
(@blackshadow)
Member Admin
Joined: 1 year ago
Posts: 108
 

i will try to check again if works on another eggdrop because on one it works.


ReplyQuote
Page 1 / 2
Share: