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.

XML to channel

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
t
tungsten
Voice
Posts: 1
Joined: Tue Apr 22, 2014 8:57 am

XML to channel

Post by tungsten »

Hey.... I'm looking for a script for days now :(

I need a script that simply posts every x seconds the data from an xml..

xml:

<vote>
<name>001</name>
<votes>12</votes>
</vote>

<vote>
<name>002</name>
<votes>10</votes>
</vote>


<vote>
<name>003</name>
<votes>9</votes>
</vote>

the xml is generated by a cron job... the eggdrop should post it like:

<nick>Current votes: 001: 12 votes | 002: 10 votes | 003: 9 votes

thats all :)

I'm a total noob when i comes to tcl... so is there a script that does this already? (maybe almost like that?)
The news scripts i tried are bloated and big - too difficult if you dont have a clue :)

thx in advance
User avatar
Get_A_Fix
Master
Posts: 206
Joined: Sat May 07, 2005 6:11 pm
Location: New Zealand

Post by Get_A_Fix »

Try using an RSS reader, they can post things for eggdrop like rss-synd, using XML. Just view the page source and edit the output accordingly.
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
Post Reply