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.

PISG User Configuration script (test release)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

PISG User Configuration script (test release)

Post by rosc2112 »

I've not seen any scripts that fill this need, so here is my own.

Purpose:

This scripts allows users to set the PISG user options: nick, aliases, pic, bigpic, sex and link. I made this script because using a server-side cgi script to allow users to edit their info was not an option. I figure I'm not the only one who generates a pisg stats page on a local machine, then uploads it to a remote website. My bot runs on the same machine that I run the pisg script from, so this is an easier way for me to allow the bot's users to edit their pisg config. This script keeps track of users pisg options by means of a seperate file that must be included from the pisg.cfg (see below.) It also saves data in the bot's userfile XTRA fields to simplify some comparisons and data retrievals.

http://members.dandy.net/~fbn/pisguc.tcl.txt


I've tested it quite a bit, but of course I can't think of every contingency a user may throw at it, so please test and report errors :)
_
__henke
Voice
Posts: 8
Joined: Fri Nov 10, 2006 10:31 am

Post by __henke »

Hello!

I've installed it, and typed /msg botname .pisg help but it answers I don't know you good enough... Or, kind of.

Could you write a little step by step =)
//henke
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

# User flags to use this script and set pisg user options
set pisgperms "f|f"
_
__henke
Voice
Posts: 8
Joined: Fri Nov 10, 2006 10:31 am

Post by __henke »

Yup, thats what it says in my .tcl file.

What flags is it? Is there any other script I need for this script to work? Or any modules in eggdrop? Or is it completley stand-alone?

Bottomline, I do not know what the flag means, f=? n=owner?

Is it kind of Q-flags?
//henke
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

__henke wrote:Yup, thats what it says in my .tcl file.

What flags is it? Is there any other script I need for this script to work? Or any modules in eggdrop? Or is it completley stand-alone?

Bottomline, I do not know what the flag means, f=? n=owner?

Is it kind of Q-flags?
1) Install pisg (perl stats generator).
2) "f" means friend: .help whois
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

_
__henke
Voice
Posts: 8
Joined: Fri Nov 10, 2006 10:31 am

Post by __henke »

OK...

Well, um, I'm a bit... well, I feel dumb and silly.

I know nothing about Eggdrop, so in that matter, treat me as a complete newbie. I only use it with pisg and mel.

http://henkee.se/pisg

And I really appreciate your patience.

And, another thing, when the bot kept rejecting me, I got angry and I spammed, so now, he ignores me. :( Typical.

I'll try to make him unignore me :D
//henke
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

You do realise nothing on that link works?

Also, if the bot had your hostmask etc set-up properly in the user file you would not have been ignored?
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
_
__henke
Voice
Posts: 8
Joined: Fri Nov 10, 2006 10:31 am

Post by __henke »

http://henkee.se/pisg/fmsweden.html

It's just my pisg.

Well, my hostmask is just my IP on this ISP, and its dynamic, so I just have to change that and it wont ignore anymore...? Well, I'll just try it =)

Just, one thing. Where should I type .help whois? The partyline or in query? Doesn't work anywhere...
//henke
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

You could set your hostmask to be like: nick!username@*.isp.com or whatever.. And yes you type the .help commands in the partyline.
It's the same info that is available from the links I posted above.
User avatar
Domin
Halfop
Posts: 72
Joined: Sat Jun 10, 2006 9:10 am

Post by Domin »

Is there any way to making this script work in a way that wouldt allow me to specify a few admins to enter details for other users, since i want to use it to make my task of keeping data in the stats current a lot easier easier.

I wouldt then specify a custom flag like P on the users allowed to edit other members details, so i dont have to edit all members my self :-)
Regards
Domin @ efnet
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Do you ever actually read the documentation that comes with things? You need to, because this is getting annoying.

# Permissions for admin options (show allcfg, show allxtra, show nick, remove nick, add nick data..)
set pisgopperms "n|n"
User avatar
Domin
Halfop
Posts: 72
Joined: Sat Jun 10, 2006 9:10 am

Post by Domin »

I dont quit think you understand what i ment, i will try to make it a bit more clear.

I want to be able to add info for other users but if i do that now the script adds them as my user info

like this

[13:31:57] <Domin> .pisg add nick="Sierra" alias="Sierra^" sex="m"
[13:34:02] <Domin> .pisg show Sierra
[13:34:04] <MMradio17> PISG show Sierra: No such user.
[13:34:10] <Domin> .pisg show Domin
[13:34:13] <MMradio17> PISG show Domin: <user nick="Sierra" alias="Sierra^" sex="m" >

I hope this can make it a bit more clear what i ment :-)
Regards
Domin @ efnet
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

In that case, typing .pisg help would have given you the answer:

-Admin Commands:
.pisg show allxtra - Show all users pisgxtra data in bot's userfile.
.pisg show allcfg - Show all pisg user.cfg file data.
.pisg show <handle> - Show pisg options for <handle>
.pisg add <handle> <options> - Add <options> for user <handle>
.pisg remove <handle> - Remove XTRA and user.cfg data for <handle>
[end pisg help]


<handle> is the user's name as known in the bot. <options> are the same type and format as the options for .pisg add (also available in '.pisg help')
User avatar
Domin
Halfop
Posts: 72
Joined: Sat Jun 10, 2006 9:10 am

Post by Domin »

I read the help section, just dident understand it that way

What your saying is that the user im adding (the handel) needs to be a user in the bot ??

Im managing a channel with lots of regulare users that are not i the bot, and the shouldt not be, i just assumed that i couldt add them this way, but i guess not.

I just thought the script looked through the users.cfg for any existing matches, then eighter added info replaced or createde new info, that wouldt then get included in the next stats update

I guess i just did not understand the functionality of the script right then.
Regards
Domin @ efnet
Post Reply