Mise en forme de code: pensez à utiliser les balises [ tcl ] et [ /tcl ] (sans les espaces bien sûr) autour de vos codes tcl afin d'avoir un meilleur rendu et une coloration syntaxique. x


[script] Eggdrop RSS Syndication
#22
Bonsoir bonsoir,
Je poste sur ce sujet vue qui parle un peu de mon problème ( ainsi j'évite d'ouvrir un autre topic )
Voilà hier j'ai voulu ajouter ce petit script à mon eggdrop qui prend les flux rss de mon blog ( dotclear pour information ) mais marche super pas ( en même temps je dois dire que je suis un peu naab sur le sujet )
Alors je vous montre ce que j'ai fait :


Code:
# Start of Settings
#

namespace eval ::rss-synd {
    variable rss

    # This is an example of a basic feed, If you dont understand why all
    #   the \'s are in the examples below use this one as a template.
    set rss(kipof) {
               "url"                   "http://kipof.net/index.php?feed/atom"
               "channels"              "#quizz"
               "database"              "./scripts/kipof.db"
               "output"    "[\002Rss kipof.net\002] @@item!title@@: \037@@item!link@@\037"
               "trigger"    "*rss"
        }

    set rss(kipofc) {
               "url"                   "http://kipof.net/index.php?feed/atom/comments"
               "channels"              "#quizz"
               "database"              "./scripts/kipofc.db"
               "output"    "[\002Commentaires kipof.net\002] @@item!title@@: \037@@item!link@@\037"
               "trigger"    "*rssc"
        }
    # The default settings, If any setting isnt set for an individual feed it'll
    #   use the default listed here
    set default        {
                 "max-output"    1
                 "remove-empty"    0
                 "max-depth"    5
                 "eval-tcl"    0
                 "update"    30
                 "timeout"    60000
                 "channels"    "#channel1 #channel2"
                 "trigger"    "!rss @@feedid@@"
                 "output"    "\[\002@@channel!title@@\002\] @@item!title@@ - @@item!link@@"
                 "useragent"    "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6"
                }
}

#
# End of Settings
#
###############################################################################
La version est la v0.2 du rss.tcl et l'erreur que j'ai en PL est :
Quote:<Oxys> [16:18] Tcl error [::rss-synd::pubFeeds]: can't read "news(item)": no such element in array
Alors si vous pourriez m'aider un peu car je suis un peu dans le brouillard :p

Merci d'avance kipof.


Messages In This Thread
RE: Eggdrop RSS Syndication - by Piepierre - 21/02/2008, 18:23
RE: Eggdrop RSS Syndication - by CrazyCat - 21/02/2008, 18:28
RE: Eggdrop RSS Syndication - by MenzAgitat - 22/02/2008, 02:17
RE: Eggdrop RSS Syndication - by titinio - 15/05/2008, 09:26
RE: Eggdrop RSS Syndication - by CrazyCat - 15/05/2008, 13:30
RE: Eggdrop RSS Syndication - by tr3nk1l - 15/06/2008, 23:27
RE: Eggdrop RSS Syndication - by Helias - 16/06/2008, 02:00
RE: Eggdrop RSS Syndication - by knx - 11/07/2008, 21:44
RE: Eggdrop RSS Syndication - by lepheniX - 21/07/2008, 03:52
RE: Eggdrop RSS Syndication - by lepheniX - 22/07/2008, 13:40
RE: Eggdrop RSS Syndication - by BdS - 23/07/2008, 12:53
RE: Eggdrop RSS Syndication - by knx - 25/07/2008, 07:28
RE: Eggdrop RSS Syndication - by MenzAgitat - 28/07/2008, 02:27
RE: Eggdrop RSS Syndication - by MenzAgitat - 28/07/2008, 16:29
RE: Eggdrop RSS Syndication - by Rikito - 04/09/2008, 13:52
RE: Eggdrop RSS Syndication - by CrazyCat - 04/09/2008, 21:28
RE: Eggdrop RSS Syndication - by Rikito - 04/09/2008, 22:19
RE: Eggdrop RSS Syndication - by CrazyCat - 05/09/2008, 20:14
RE: Eggdrop RSS Syndication - by MenzAgitat - 05/09/2008, 01:18
RE: Eggdrop RSS Syndication - by Rikito - 05/09/2008, 19:59
RE: Eggdrop RSS Syndication - by kipof - 22/02/2009, 17:30
RE: Eggdrop RSS Syndication - by CrazyCat - 22/02/2009, 22:48
RE: Eggdrop RSS Syndication - by kipof - 22/02/2009, 23:37
RE: Eggdrop RSS Syndication - by CrazyCat - 23/02/2009, 10:24
RE: [script] Eggdrop RSS Syndication - by joh93 - 17/10/2009, 16:58
RE: [script] Eggdrop RSS Syndication - by Pollet - 25/11/2009, 13:35
RE: [script] Eggdrop RSS Syndication - by Pollet - 25/11/2009, 18:22
RE: [script] Eggdrop RSS Syndication - by Pollet - 25/11/2009, 13:54
RE: [script] Eggdrop RSS Syndication - by nolaan - 06/06/2010, 10:39
RE: [script] Eggdrop RSS Syndication - by Xima - 29/08/2010, 17:45
RE: [script] Eggdrop RSS Syndication - by uto - 25/06/2011, 19:30
RE: [script] Eggdrop RSS Syndication - by kriissss - 08/09/2013, 14:27
RE: [script] Eggdrop RSS Syndication - by kriissss - 08/09/2013, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)