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.

pixseen v1.0

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
Pixelz
Voice
Posts: 24
Joined: Wed Jun 15, 2005 9:37 am
Location: EFnet

pixseen v1.0

Post by Pixelz »

Here's my seen script for a new age.

Features:
- SQLite powered
- Tracks everyone it sees
- Search nick/uhost/chan using exact, glob (*?) or regex matching
- Import your old seen database from bseen or gseen
- Easily translated or themed using msgcat
- Per-channel language setting

Dependencies:
- Tcl 8.5
- msgcat 1.4.2 (this is included in Tcl 8.5)
- SQLite 3

Usage:
To import your old bseen or gseen database, use the included import scripts. Do NOT load these importers from within Eggdrop.

Code: Select all

./pixseen-import-bseen.tcl ../bs_data.bot
./pixseen-import-gseen.tcl path/to/gseen.dat
This will generate a pixseen.db file in the same directory as the importer script. Move this into the eggdrop "scripts" directory if it's not there already, or change the setting in pixseen.tcl.

To turn on the output in a channel:

Code: Select all

.chanset #chan +seen
The script will track people in any channel, it just won't answer to !seen requests if this isn't turned on.

To change the language for a channel:

Code: Select all

.chanset #chan seenlang en
Currently supported languages are "en" and the example translation, "en_us_bork"

Public trigger:

Code: Select all

!seen [-exact/-glob/-regex] [--] <nick> [user@host] [channel]
Examples:

Code: Select all

!seen nick
!seen -exact nick
!seen -glob ni*ck
!seen -regex ni.* .*\.host\.(com|net|org)
/msg trigger:

Code: Select all

/msg botnick seen [-exact/-glob/-regex] [--] <nick> [user@host] [channel]
partyline/dcc trigger:

Code: Select all

.seen [-exact/-glob/-regex] [--] <nick> [user@host] [channel]
Download:
pixseen1.0.tar.gz
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Post by Koo »

Oh, this script looks great. I think I should give it a try. :D

Wait, will this script will me the the time <nick> stayed on the channel when I type !seen <nick>?
User avatar
Pixelz
Voice
Posts: 24
Joined: Wed Jun 15, 2005 9:37 am
Location: EFnet

Post by Pixelz »

Koo wrote:Wait, will this script will me the the time <nick> stayed on the channel when I type !seen <nick>?
If the person is still on the channel, it will say when he last spoke. It won't tell you how long someone stayed on a channel.
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Post by Koo »

Pixelz wrote:If the person is still on the channel, it will say when he last spoke. It won't tell you how long someone stayed on a channel.
Oh, that sounds great too. Thanks Pixelz. :3
h
horgh
Voice
Posts: 10
Joined: Sat Feb 13, 2010 3:12 pm

Post by horgh »

Thanks for the great script! Got it loaded on all my bots.

If you do another release I have a couple minor requests/suggestions! :oops:
- some kind of status of db like size, num of nicks
- help/usage if just !seen or some such. I see there is some code here for this but bot doesn't say anything when I try just !seen. Maybe I'm reading it wrong.
User avatar
Pixelz
Voice
Posts: 24
Joined: Wed Jun 15, 2005 9:37 am
Location: EFnet

Post by Pixelz »

horgh wrote:- some kind of status of db like size, num of nicks
This is planned for the next release.
horgh wrote:- help/usage if just !seen or some such. I see there is some code here for this but bot doesn't say anything when I try just !seen. Maybe I'm reading it wrong.
This has been fixed in SVN.

I've been busy with work lately so I'm not sure exactly when the next release will happen though.
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

pixseen.tcl error; ::pixseen::Hand2Uhost was unable to extract uhost. PLEASE REPORT THIS BUG!

any idea why I get this error?

I think I should inform you that, apparently I tried to import gseen's database but I guess it didn't work.

And by the way, is it possible for this script to be modded to inform with a notice the user that someone was looking for them? like how gseen.mod does? that would be awesome :D
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
User avatar
Pixelz
Voice
Posts: 24
Joined: Wed Jun 15, 2005 9:37 am
Location: EFnet

Post by Pixelz »

spithash wrote:pixseen.tcl error; ::pixseen::Hand2Uhost was unable to extract uhost. PLEASE REPORT THIS BUG!

any idea why I get this error?
There's some kind of problem with the logic there, I'm not sure what exactly.
Pixelz @ EFnet, freenode, QuakeNet, Undernet
Post Reply