Communauté Eggdrop
[script] Eggdrop RSS Syndication - Version imprimable

+- Communauté Eggdrop (https://forum.eggdrop.fr)
+-- Forum : Eggdrop et TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=8)
+--- Forum : Scripts TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=4)
+---- Forum : Releases et support (https://forum.eggdrop.fr/forumdisplay.php?fid=20)
+---- Sujet : [script] Eggdrop RSS Syndication (/showthread.php?tid=156)

Pages : 1 2 3 4 5 6 7 8 9 10 11


RE: [script] Eggdrop RSS Syndication - Utas - 29/04/2010

Super script, vraiment!
Je n'ai pas eu de soucis pour l'installation, tout se passe super bien.

Cependant j'ai une question, est-il possible de faire en sorte que le mode de publication de l'actualité soit en 'say' et / ou en 'topic' ?


RE: [script] Eggdrop RSS Syndication - Marc - 29/04/2010

C'est possible en appelant la procedure utilisé via un "utimer" ou "timer" tout dépendant si tu veux l'actualisation en seconde ou en minute Wink


RE: [script] Eggdrop RSS Syndication - Utas - 30/04/2010

Peu importe en réalité, tant que ce n'est pas en heure. Wink


RE: [script] Eggdrop RSS Syndication - nolaan - 06/06/2010

bonjour, je cherche à afficher la description du flux rss sur le canal irc

j'aimerais savoir comment procéder, voici un bout de mon code :
Code :
namespace eval ::rss-synd {
    variable rss
    variable default

    set rss(sport24.com) {
        "url"            "http://www.sport24.com/rssfeeds/sport24-accueil.xml"
        "channels"        "#sports"
        "database"        "scripts/databases/sport.db"
        "output"        "\[\002News\002\] @@item!title@@ : @@item!description@@"
        "trigger"        "!rss"
        "evaluate-tcl"    1
    }



RE: [script] Eggdrop RSS Syndication - EvilHeart - 06/07/2010

Hi guys im new eggdrop tcl
i need help

i need <line>

Code :
    set rss(Live) {
        "url"            "http://synd.cricbuzz.com/stickcricket/data/2010/2010_PAK_AUS/PAK_AUS_JUL06/scores.xml"
        "channels"        "#color"
        "database"        "Live.db"
        "output"        "\\\[\002Live\002\\\] @@scorecard@@player!line@@"
        "trigger"        "!rss"
        "evaluate-tcl"    1
    }
output

Code :
<commentary>
−
<line>
18.6  Aamer to Nannes, no run, swings and misses, bat was nowhere near the ball
</line>

anyone help me plss output plsssssss Ty


RE: [script] Eggdrop RSS Syndication - EvilHeart - 07/07/2010

help me pls anyoneeee


RE: [script] Eggdrop RSS Syndication - CrazyCat - 07/07/2010

try with @@commentary!timeline@@
But it is not a real RSS, so I'm not sure rss-synd will accept it


RE: [script] Eggdrop RSS Syndication - EvilHeart - 08/07/2010

not working Sad any way to use
http://synd.cricbuzz.com/stickcricket/data/2010/2010_PAK_AUS/PAK_AUS_JUL06/scores.xml

link?


RE: [script] Eggdrop RSS Syndication - CrazyCat - 08/07/2010

EvilHeart: your xml is not an rss feed. You'd better search for an XML parser


RE: [script] Eggdrop RSS Syndication - prates - 29/07/2010

bonjour,
j'aime bien ce code de CrazyCat, mais juste une petite question:

comme vous voyez le code n'envoie sur le canal que les titre, est il possible d'afficher quelques lignes du corps de l'info ??

merci


RE: [script] Eggdrop RSS Syndication - MenzAgitat - 31/07/2010

@prates : L'auteur de RSS Syndication est Andrew Scott, pas CrazyCat.

Si le flux RSS contient un aperçu de l'info, il sera possible de l'afficher, et uniquement à cette condition.
Il faut donc voir au cas par cas.


RE: [script] Eggdrop RSS Syndication - prates - 07/08/2010

Pollet a écrit :je ne sais pas si j'aurais une réponse mais j'essaye quand meme.
Est-il possible d'avoir un script comme celui-ci ( qui marche très bien ) mais que au lieu de mettre la commande !rss ( exemple ) pour avoir le flux, le bot le fasse en automatique c'est à dire que toutes les X minute ( 20min par exemple ) le bot mette le flux rss sur un ou plusieurs canaux sans qu'on ai besoin de la commande.
Si oui est ce que quelqu'un pourrait m'aider ?

pourquoi utuliser bind time alors que tu as deja :

"update-interval" 30 <== tu peux le modifier a tes besoins


RE: [script] Eggdrop RSS Syndication - Xima - 29/08/2010

Est-ce que c'est possible d'avoir la significations de ces quelques variables du script ?

Merci d'avance

tcl
		"remove-empty"		1
		"trigger-type"		0:2
		"announce-type"		0
		"max-depth"			5
		"evaluate-tcl"		0
		"update-interval"	30





RE: [script] Eggdrop RSS Syndication - CrazyCat - 30/08/2010

En lisant le README qui est dans l'archive, et ainsi que c'est indiqué dans le tcl:
Citation :
  • remove-empty: Remove empty cookies from the output.
    Default: 1 (On)
  • trigger-type: How you want the trigger replies to be sent when triggered both in channel and via private message.
    The format is: <channel>:<privmsg>
    Options:
    0 = Message Channel
    1 = Notice Channel
    2 = Message User
    3 = Notice User
    Default: 0:2
  • announce-type: How you want the announce updates to be sent to your channels.
    Options:
    0 = Message Channel
    1 = Notice Channel
    Default: 0
  • max-depth: Maximum amount of times the script should follow Location: headers. Keep this relatively low.
    Default: 5
  • evaluate-tcl: Evaluate the output before sending it to channel.
    Default: 0 (Off)
  • update-interval: How often (in minutes) you want the feed to be checked. Try and keep this number sensible, something above 15 minutes.
    Some websites will ban you for hammering their feeds.
    Default: 30
Avec un petit nota pour ce qui concerne les cookies de "remove-empty":
Citation :Cookies:
========
Output works on a cookie system, in this case its dynamic so it depends on what data the feed contains as to what you can output.
As of version 0.3 you are able to reference any tag within each article, or if you really want the whole feed. The format is @@<tag>!<subtag>!...@@, @@item@@ and @@entry@@ cookies are 'shortcuts' and will always point to the current article. If you wish to output an attribute of a tag you can do that by using the attribute name with an = in front of it (eg: @@entry!link!=href@@). This would get the 'href' attribute from the <link> tag. Refer to rss-synd.tcl for more examples.



RE: [script] Eggdrop RSS Syndication - o0TaGa0o - 10/12/2010

sur le chan le bot me fait :

<_Skunk_> [Derniers posts] Résistances et Supports du 9 décembre 2010: @@item!link@@

on dirait qu'il arrive pas a pomper le lien ?

voici ma config

set rss(eggdrop) {
"url" "http://feeds2.feedburner.com/forexpros/fr/latest-10"
"channels" "#ForExperience"
"database" "databases/eggdrop.fr-rss.db"
"output" "[\002Derniers posts\002] @@item!title@@: \037@@item!link@@\037"
"trigger" "!eggrss"
"max-output" 10
}