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.

Not your average Seen Script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
J
Joori
Voice
Posts: 34
Joined: Fri Mar 24, 2006 8:53 pm
Location: Sydney
Contact:

Not your average Seen Script

Post by Joori »

Hi all you tcl legends. Thought i'd throw an idea out there and see if anyone is up for the challenge..

What i'm thinking is, well, you have your regular seen scripts that lookup when a particular nick was last seen on the network. What if there was an option or script that you could look up last seen IP's. By that i mean, the script could have it's own DB of hosts/ip's (masked or unmasked depending if the network you are on supports host masking) and people could lookup a users host/IP rather than their nick... or both if they so wish.. could maybe have your regular seen script add the last host used by that nick if nothing else.

But yeah, thats my 2c on a suggestion/request for a script. Would appreciate feedback on it - if it can be done, will it be done, won't it be done and if not why not.

Cheers,

Joori
No Haters, No Spies, Just the love 'tween my thighs!
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Um.. The simpsons already did it. :lol:
<speechles> !seen *atlanticbb.net
<bot> speechles, I found 5 matches to your query: jimmy, chey803, jim, arthegost, Apoc`. jimmy (~jim@207-255-139-113-dhcp.bfd.pa.atlanticbb.net) was last seen quitting #here 2 weeks 3 days 13 hours 6 minutes ago (11.11. 00:51) stating "Quit: ~ Trillian Astra - www.trillian.im ~" after spending 10 hours 56 minutes there.
Here's your 2cents back. Keep it for something not yet realized. The above is produced using "gseen". I'm quite sure bseen supports similar behavior.
J
Joori
Voice
Posts: 34
Joined: Fri Mar 24, 2006 8:53 pm
Location: Sydney
Contact:

Post by Joori »

rofl great stuff.

i'll take my 2c and spend it on an upgrade of my 'search skill' ..sheesh who would have though aye. :D

I kind of suspected bseen would *probably* be able to do that but couldn't recall ever seeing it do so and googling for a while made me forget all about even trying bseen out :o

Guess you live and learn *goes off to try bseen out once more and sample gseen* :oops:
No Haters, No Spies, Just the love 'tween my thighs!
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Post by blake »

Just downloaded gseen can it be added to a bot that is already configured all will i need to recompile the bot again
J
Joori
Voice
Posts: 34
Joined: Fri Mar 24, 2006 8:53 pm
Location: Sydney
Contact:

Post by Joori »

Just follow the instructions. in the README file.

Code: Select all

You need the eggdrop source to compile the module.

The following instructions assume, ~/eggdrop1.6.2/ is the directory
where you installed your eggdrop from. (of course, other source dirs
will work as well)

Put gseen.mod.1.1.0.tar.gz in ~/eggdrop1.6.2/src/mod/,
and unpack it (tar xfz gseen.mod.1.1.0.tar.gz). Change directory
back to ~/eggdrop1.6.2/.

Now just do what you've done when you compiled your bot:
"./configure"
"make config" (you can skip this command on eggdrop 1.4)
"make"
"make install"

Don't forget to copy the langfiles from eggdrop1.6.2/src/mod/gseen.mod/ to
eggdrop/language.

All settings can be found in ~/eggdrop1.6.2/src/mod/gseen.mod/gseen.conf
Copy it to your eggdrop directory, edit it to fit your needs and put
"source gseen.conf" at the end of your eggdrop config file. The last thing
to do is to .rehash your bot.
Worked a treat for me. Didn't even have to restart/shutdown the bot for the compile or anything :) Props to speechless who brought the module to my attention! :D
No Haters, No Spies, Just the love 'tween my thighs!
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Post by blake »

Have installed gseen to my bot and is all working only one problem it only will allow the nicknames to be so many letters long can this be changed
J
Joori
Voice
Posts: 34
Joined: Fri Mar 24, 2006 8:53 pm
Location: Sydney
Contact:

Post by Joori »

Yes by editing eggdrop.h and changing the max characters of HANDLEN to 32 or w/e the server you are on supports and then recompile your eggdrop. eggdrop.h is found in your eggdrop's src dir.

An example of my eggdrop.h file.

Code: Select all

#define HANDLEN 32  /* valid values 9->NICKMAX  */
No Haters, No Spies, Just the love 'tween my thighs!
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Actually, the HANDLEN macro has no effect on gseen unless you've enabled the use-handles setting, and even then, it would only affect already known users of the bot.
Additionally, modifying the HANDLEN macro will render your current userfile useless, unless you correct each user record to the proper length by hand.

Instead, add a line such as this to your gseen.conf file:

Code: Select all

set seen-nick-len 32
NML_375
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Post by Koo »

Sorry for bringing this old thread back but since I'm too lazy to create a new thread about gseen therefore I think I should ask this here.

Can gseen be configured to dislay the time in second too? This is what I mean:


ORIGINAL GSEEN RESULT taken from speechles' post. Sorry speechles! >.<
<speechles> !seen *atlanticbb.net
<bot> speechles, I found 5 matches to your query: jimmy, chey803, jim, arthegost, Apoc`. jimmy (~jim@207-255-139-113-dhcp.bfd.pa.atlanticbb.net) was last seen quitting #here 2 weeks 3 days 13 hours 6 minutes ago (11.11. 00:51) stating "Quit: ~ Trillian Astra - www.trillian.im ~" after spending 10 hours 56 minutes there.
Can it be made to display the result like this:
<speechles> !seen *atlanticbb.net
<bot> speechles, I found 5 matches to your query: jimmy, chey803, jim, arthegost, Apoc`. jimmy (~jim@207-255-139-113-dhcp.bfd.pa.atlanticbb.net) was last seen quitting #here 2 weeks 3 days 13 hours 6 minutes and 15 secs ago (11.11. 00:51) stating "Quit: ~ Trillian Astra - www.trillian.im ~" after spending 10 hours 56 minutes and 15 secs there.
The "and 15 secs" part is just an example btw. :wink:


Is it possible? Any help from TCL legends would be appreciated.


Thanks. :D
Post Reply