maubot / rss

A RSS plugin for maubot
GNU Affero General Public License v3.0
68 stars 21 forks source link

Bot doesn't react. #48

Closed GamePlayer-8 closed 1 year ago

GamePlayer-8 commented 1 year ago

Heyo,

I'm having an issue with RSS bot. Like, it doesn't react on commands. Logs doesn't shows an error or anything else. Here's the config:

# Feed update interval in minutes
update_interval: 60
# Maximum backoff in minutes when failing to fetch feeds (defaults to 5 days)
max_backoff: 3000
# The time to sleep between send requests when broadcasting a new feed entry.
# Set to 0 to disable sleep or -1 to run all requests asynchronously at once.
spam_sleep: -1
# The prefix for all commands
# It has to be prefixed with ! in matrix to be recognised
command_prefix: !rss
# Default post notification template for new subscriptions
notification_template: 'New post in $feed_title: [$title]($link)'
# Users who can bypass room permission checks
admins:
- '@gameplayer:matrix.xaviama.dank-me.me'

Startup logs:

GET https://matrix.xaviama.dank-me.me/_matrix/client/v3/account/whoami
req #185 (/v3/account/whoami) completed in 33.2ms with status 200
GET https://matrix.xaviama.dank-me.me/_matrix/client/v3/profile/%40rss%3Amatrix.xaviama.dank-me.me/displayname
req #186 (/v3/profile/%40rss%3Amatrix.xaviama.dank-me.me/displayname) completed in 8.8ms with status 200
GET https://matrix.xaviama.dank-me.me/_matrix/client/v3/profile/%40rss%3Amatrix.xaviama.dank-me.me/avatar_url
req #187 (/v3/profile/%40rss%3Amatrix.xaviama.dank-me.me/avatar_url) completed in 8.0ms with status 200
Enabling end-to-end encryption support
GET https://matrix.xaviama.dank-me.me/_matrix/client/v3/profile/%40rss%3Amatrix.xaviama.dank-me.me
Starting syncing
req #188 (/v3/profile/%40rss%3Amatrix.xaviama.dank-me.me) completed in 27.0ms with status 200
Client started, starting plugin instances...
Connecting to sqlite://data/dbs/rss.db
Database connection init commands: ['PRAGMA foreign_keys = ON', 'PRAGMA journal_mode = WAL', 'PRAGMA busy_timeout = 5000']
Database at v3, not upgrading
Started instance of xyz.maubot.rss v0.3.2 with user @rss:matrix.xaviama.dank-me.me
Polling started
Call-Me-G-Now commented 1 year ago

command prefix should be without !

what you have written now requires you to type !!rss to have the bot react.

GamePlayer-8 commented 1 year ago

That solves the issue. Although, in the config example replacing:

command_prefix: !rss

to

command_prefix: rss

is needed.

Call-Me-G-Now commented 1 year ago

can u link the file that's incorrect?

The current config file in the repo is correct: https://github.com/maubot/rss/blob/b58202ebfbfcbcb5145d441979cb9c29b85d28a3/base-config.yaml#L10

tulir commented 1 year ago

The example config was fixed 4 years ago 🤔 https://github.com/maubot/rss/commit/e51b1b57c4e35d4336e1f2a4b5dfc2a3e4ef6eaa

GamePlayer-8 commented 1 year ago

Weird, I got the file with !rss from the releases page.