Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

RSS integration into channels

Open IQ2022 opened this issue 11 years ago • 14 comments

have RSS Feed pushed into a channel, like news, events, etc.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

IQ2022 avatar Sep 24 '15 02:09 IQ2022

Would this be something better suited for hubot-rocketchat to handle instead? ie: https://www.npmjs.com/package/hubot-rss-reader ...

jonbaer avatar Sep 26 '15 04:09 jonbaer

:+1: Relieves the chat server of the work load, and helps to keep the RSS fetch/process code simple and independent.

Sing-Li avatar Sep 26 '15 12:09 Sing-Li

Hi,

That's exactly what I'm trying to setup, but that script isn't on hubot-scripts. How do you add other scripts to the internal hubot ? That doesn't seem to be documented.

Ulrar avatar Dec 07 '16 08:12 Ulrar

+1

dmeier86 avatar Dec 08 '16 10:12 dmeier86

+1

cyclops24 avatar Sep 23 '17 03:09 cyclops24

use hubot for this, it shouldn't be in core. there's plenty of rss modules for hubot.

JSzaszvari avatar Sep 23 '17 08:09 JSzaszvari

You mean this? https://www.npmjs.com/package/hubot-rss-reader

cyclops24 avatar Sep 23 '17 08:09 cyclops24

I agree with @jszaszvari. This is nothing that should be included in the core of Rocket.Chat, there's plenty of possibilities to get content into Rocket.Chat.

If you need help integrating RSS with hubot, try asking for help in https://open.rocket.chat/channel/hubot. :)

Cheers Thomas

TwizzyDizzy avatar Feb 05 '18 22:02 TwizzyDizzy

Is there a simple tutorial on how-to do this? or do I really have to go to this channel and ask? :)) thanks

albjeremias avatar Apr 14 '18 14:04 albjeremias

@albjeremias , did you ever figure this out? It's a mystery to me as well on how I would set this up.

boldwade avatar Dec 18 '18 16:12 boldwade

I just found how to use this if your are interested https://github.com/Flipez/hubot-rss-rolf

yodatak avatar May 31 '20 22:05 yodatak

git clone https://github.com/RocketChat/hubot-rocketchat-boilerplate
cd hubot-rocketchat-boilerplate
# edit the external-scripts.json and put this 
[
"hubot-rss-rolf",
"hubot-mongodb-brain"
]

npm install
npm install hubot-rss-rolf -save
npm install hubot-mongodb-brain -save
npm install coffee-script@">=1.9" -save
npm install [email protected]


# create and put into the .env file this
export ROCKETCHAT_URL=chat.CXXXXXX.org
export ROCKETCHAT_USER=mybotuser
export ROCKETCHAT_PASSWORD=mypassword
export ROCKETCHAT_ROOM=general
export ROCKETCHAT_USE_SSL=true
export DEBUG=hubot-rss-reader*      # debug print
export HUBOT_RSS_INTERVAL=600       # 600 sec (default)
export HUBOT_RSS_HEADER=:sushi:     # RSS Header Emoji (default is "sushi")
export HUBOT_RSS_USERAGENT=hubot    # (default is "hubot-rss-reader/#{package_version}")
export HUBOT_RSS_PRINTSUMMARY=true  # print summary (default is "true")
export HUBOT_RSS_PRINTIMAGE=false   # print image in summary (default is "true")
export HUBOT_RSS_PRINTMARKDOWN=true # use markdown message (default is "false")
export HUBOT_RSS_PRINTERROR=false   # print error message (default is "true")
export HUBOT_RSS_IRCCOLORS=true     # use IRC color message (default is "false")
export HUBOT_RSS_LIMIT_ON_ADD=false # limit printing entries on add new feed. (default is 5)
export HUBOT_RSS_DUMP_USERS=""      # limit dump to special user (list without spaces eg. "user1,user2")


source .env
bin/hubot

I cant belive that is so difficult and undocumented to have just a simple rocketchat bot

yodatak avatar May 31 '20 22:05 yodatak

@yodatak thanks for the instructions, however I am getting the following error. The Hubot connects for a few seconds, and then crashed with this (hostname changed for posting only):

[Sat Jan 28 2023 15:07:18 GMT-0500 (Eastern Standard Time)] INFO [startup] Rocket.Chat adapter in use [Sat Jan 28 2023 15:07:18 GMT-0500 (Eastern Standard Time)] INFO [startup] Respond to name: Hubot [Sat Jan 28 2023 15:07:18 GMT-0500 (Eastern Standard Time)] INFO [startup] Respond to alias: rssbot [Sat Jan 28 2023 15:07:18 GMT-0500 (Eastern Standard Time)] INFO [connect] Connecting { username: 'rssbot', password: '********', ldap: false, host: 'mysite:8080', useSsl: true, timeout: 20000, rooms: [ 'cloudstatus' ], allPublic: false, dm: false, livechat: false, edited: false, integrationId: 'js.SDK', roomCacheMaxSize: 10, roomCacheMaxAge: 300000, dmCacheMaxSize: 10, dmCacheMaxAge: 100000 } [Sat Jan 28 2023 15:07:18 GMT-0500 (Eastern Standard Time)] INFO [connect] Connected [Sat Jan 28 2023 15:07:18 GMT-0500 (Eastern Standard Time)] INFO [login] Logging in rssbot [Sat Jan 28 2023 15:07:19 GMT-0500 (Eastern Standard Time)] INFO [subscribe] Preparing subscription: stream-room-messages: my_messages [Sat Jan 28 2023 15:07:19 GMT-0500 (Eastern Standard Time)] INFO [subscribe] Stream ready: 2 [Sat Jan 28 2023 15:07:19 GMT-0500 (Eastern Standard Time)] INFO [reactive] Listening for change events in collection stream-room-messages [Sat Jan 28 2023 15:07:19 GMT-0500 (Eastern Standard Time)] INFO [joinRoom] Calling (async): ["6DnndpzH6yD3wNNof"] [Sat Jan 28 2023 15:07:20 GMT-0500 (Eastern Standard Time)] ERROR Unable to load /home/merauder/hubot-rocketchat-boilerplate/node_modules/hubot-rss-reader/scripts/hubot-rss-reader: /home/merauder/hubot-rocketchat-boilerplate/node_modules/hubot-rss-reader/libs/rss-checker.coffee:26:5: error: Can't reference 'this' before calling super in derived class constructors @entries = new Entries @robot

merauder avatar Jan 28 '23 20:01 merauder

Did this ever get fixed/understood/resolved? Am really interested in RSS feeds to Rocket.chat channels.

brianread108 avatar Jan 08 '25 11:01 brianread108