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.

script request

Old posts that have not been replied to for several years.
L
LanEvo
Voice
Posts: 18
Joined: Sun May 30, 2004 11:17 pm

script request

Post by LanEvo »

is there a tcl script that can define acronyms such as "lol" etc from http://www.ucc.ie/cgi-bin/uncgi/acronym?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

You can search in the egghelp tcl archive if you don't
find any over there you'll have to make one yourself.

There will be 2 choices availiable.

[1] You can make small scripplets defining each words meanings.
[2] You can make a script to retrieve web search results and display them.

The first one would be alot of easier, but will only have the results in the database which you add in the tcl procedures.

The second one will be harder to code but will have a direct display of results from the website you gave and would display the same results as on the website.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
L
LanEvo
Voice
Posts: 18
Joined: Sun May 30, 2004 11:17 pm

Post by LanEvo »

hmm ok i'll try that

but out of this subject, i was looking forward to using your advertisekick.tcl but i couldn't get it to work :(. i wonder what i did wrong
D
DarkJFMan
Halfop
Posts: 85
Joined: Mon Dec 15, 2003 3:19 pm

Post by DarkJFMan »

same here :/, it banned and everything, but the problem didn't unban, something wrong about the timer.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

If an error is produced it would help if you could post it?
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

I guess so, if there is a tcl error please check in dcc partyline with your eggdrop bot and show is the error, so we may be able to resolve it, if possible.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
D
DarkJFMan
Halfop
Posts: 85
Joined: Mon Dec 15, 2003 3:19 pm

Post by DarkJFMan »

I'll load the script again, and show you the error.
D
DarkJFMan
Halfop
Posts: 85
Joined: Mon Dec 15, 2003 3:19 pm

Post by DarkJFMan »

Error -
[02:27:52am] <DarkJFGirl> [05:30] Tcl error in script for 'timer1':
[02:27:52am] <DarkJFGirl> [05:30] invalid command name "hooters"
Problem is, my chan is #hooters, and the person that got banned is [hooters], so i'm not sure which one is causing the probelm.

And if someone does
<nick>: #chan
They won't get banned.
D
DarkJFMan
Halfop
Posts: 85
Joined: Mon Dec 15, 2003 3:19 pm

Post by DarkJFMan »

I changed name of my bot to TestBot
[02:40:53am] <DarkJFGirl> [05:43] Tcl error in script for 'timer2':
[02:40:53am] <DarkJFGirl> [05:43] invalid command name "hooters"
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Yes there must be problem passing special characters such as [, ] and also like \. If nicks have these characters mostly [ or ] then a problem might occur, however I'll look into it.

Other than that it should be okay.

Yeah I made it that away.
<awyeah> #india
Would result in no ban.
This is a small enough word not to be counted for invitation.

Mostly spammers users this way
<awyeah> #india #india #india
So this would be detected as spam.

However if you want it to work to ban just for normal words
such as <awyeah> #india put "#*" in the spam detection word list.

Then it would ban for anything such as
#1-395-5645
#mychannel
#noname
...and etc

Basically it would ban for anything said afte the # sign.
If a text is "my phone # is...." then it wouldn't ban.
The text must be joined to the # to make "#*" work.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Eggdrop cannot see any nick that starts with a left open bracket and ending in a right closing bracke ie. [mynick], as far as the bot is concerned they just do not exist despite the fact they can be sitting right there in the channel. It also has a problem with nicks containing {}. The reason why is simple; tcl control characters. In other words, nicks containing those "special" characters are basically "illegal".

I have yet to find any solution to this problem and doubt there is.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Where do eggdrop have problems "seeing" nicks ?

When I'm doing a '.channel ' it list all the nicks in the channel just fine, including those with brackets and braces.
Changing my nick on the partyline to [gb] don't seem to cause any problems either.

As for scripts go, escape them properly using join/split or use lists.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Via scripts .. no hope of seeing [mynick] in particular. In DCC there seems to be no problem. :P

And as it was a scripting problem that was being discussed......

*Edited*
DarkJFMan: My previous post is referring to a TCL scripting problem not to any problem via DCC.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

You can use splits to prevent this followed by join if necessary.

In scripts for $chan and $nick you can use these, to prevent it choking on special characters.

For a $nick use:

Code: Select all

[join [split $nick]]
For $chan use:

Code: Select all

[join [split $chan]]
This should disable the error, however you can filter them with
regsub as well, but that will be a bit difficult... you have to create a filter.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
D
DarkJFMan
Halfop
Posts: 85
Joined: Mon Dec 15, 2003 3:19 pm

Post by DarkJFMan »

But like i said on second post, i though it might be a problem, but then i change the bot's name to TestBot, and i still got the same error.
Locked