Psychostats2Eggdrop
(Różnice między wersjami)
(→Pros) |
|||
Linia 16: | Linia 16: | ||
* template makes it easier to edit output format - you do not have to use a plain text, you can change it to RSS feed aswell, or later integrate it to WWW in some intranet website | * template makes it easier to edit output format - you do not have to use a plain text, you can change it to RSS feed aswell, or later integrate it to WWW in some intranet website | ||
* you can easily restrict access to the script | * you can easily restrict access to the script | ||
+ | * php script will be mainly ripped directly from psychostats, so most work is allready done | ||
+ | |||
==Cons== | ==Cons== | ||
* requres aditional file in php | * requres aditional file in php |
Wersja z 10:40, 22 paź 2006
Spis treści |
Description
Accessing PsychoStats statistics from the Eggdrop TCL script , so the players can check their statistics on IRC.
Ideas
- eggdrop tcl asks for www page with given parameter
- php checks if parameter is correct (to avoid exploits), then runs SQL query, and produces output based on given template file
- eggdrop recieves data and passess them to the irc channel, or privmsg to player
Pros
- not everyone can connect to remote mysql host
- integrating sql witin tcl will make file too large and hard to edit output
- php connects to mysql better :)
- template makes it easier to edit output format - you do not have to use a plain text, you can change it to RSS feed aswell, or later integrate it to WWW in some intranet website
- you can easily restrict access to the script
- php script will be mainly ripped directly from psychostats, so most work is allready done
Cons
- requres aditional file in php
- require extra tcl script for retreivng data from www, but most users that use RSS readers, Weather scripts or Google search tools allready have it