go-neb
go-neb copied to clipboard
Unable to get echo command working
Hi,
Thanks for developping this bot and add integrations.
Can anyone help on the configuration and try at least get working echo command.
I did what is written in the README file but I cannot get thinks working.
What I did:
- install go
- install go-neb with the build command (everything is ok at build time)
- ran the command to start go neb (with config file way):
CONFIG_FILE=config.yaml BIND_ADDRESS=:4050 DATABASE_TYPE=sqlite3 DATABASE_URL=go-neb.db?_busy_timeout=5000 BASE_URL=https://my-domain.org bin/go-neb
Output response:
INFO[0000] Go-NEB ({BindAddress::4050 DatabaseType:sqlite3 DatabaseURL:go-neb.db?_busy_timeout=5000 BaseURL:https://my-domain.org/_bot LogDir:./logs ConfigFile:config.yaml})
- I got 2 Matrix user ID:
-
@buddybot:my-domain.org
-
@rssbot:my-domain.org
-
Both have access tokens (I logged in with that user and took the access token from riot web settings UI) and gave it to Go-NEB:
Here is my config file:
clients:
- UserID: "@buddybot:my-domain.org"
AccessToken: "<redacted>"
HomeserverURL: "https://my-domain.org"
Sync: true
AutoJoinRooms: true
DisplayName: "Buddy Bot"
- UserID: "@rssbot:my-domain.org"
AccessToken: "<redacted>"
HomeserverURL: "https://my-domain.org"
Sync: false
AutoJoinRooms: false
DisplayName: "RSS Bot"
services:
- ID: "echo_service"
Type: "echo"
UserID: "@buddybot:my-domain.org"
Config: {}
# requires a Syncing client
- ID: "giphy_service"
Type: "giphy"
UserID: "@buddybot:my-domain.org"
Config:
api_key: "<redacted>"
use_downsized: true
# requires a Syncing client
- ID: "wikipedia_service"
Type: "wikipedia"
UserID: "@buddybot:my-domain.org"
Config:
- ID: "rss_service"
Type: "rssbot"
UserID: "@rssbot:my-domain.org"
Config:
feeds:
"http://lorem-rss.herokuapp.com/feed?unit=second&interval=1":
rooms: ["!<redacted>:my-domain.org"]
Ouput:
time="<redacted>" level=info msg="Inserted 2 clients"
time="<redacted>" level=info msg="Inserted 0 realms"
time="<redacted>" level=info msg="Inserted 0 sessions"
time="<redacted>" level=info msg="Created new client" auto_join_rooms=true since= sync=true user_id="@buddybot:my-domain.org"
time="<redacted>" level=info msg="Created new client" auto_join_rooms=false since= sync=false user_id="@rssbot:my-domain.org"
- the bot user is well connected on the room
Here start the problem:
- I typed
!echo hello world
but nothing happen - I typed
!giphy hello world
but nothing happen - I typed
!wikipedia hello world
but nothing happen
My RSS bot is 100% working well.
Reopened issue and updated first message
Hi,
Anyone to help me on that?
I have nothing in logs...
Thanks!
Drive-by comment here, but I notice you have two users configured – is @buddybot
definitely invited to the room? And did the bot accept the invite? (Also - I had to log in using a client and accept the invite manually, it didn't auto-accept 🤔)
Hi @3-w-c
Thanks for the quick comment :)
Sure the user is OK and as well for the token :)
Still nothing