Comments (9)
I'll take a look at this once the HTTP changes for Lemmy are merged., Thanks for letting me know.
from lemmy-bot.
I made a new user and it seems to be working with that one with the same script. I made a patch by checking the community ID with getCommunityId, but the next day, without rebooting my PC, getCommunityId now returns undefined on the same script. I'm thinking this might be an issue with the lemmy instance not this library. I'll try to look into this further and see if I can find the source.
from lemmy-bot.
This might have been fixed by upgrading my lemmy instance from 0.17.2 to 0.17.4. it still replies to any local community but it seems to follow allowList for federated communities
from lemmy-bot.
I have had no more issues since the lemmy update and some constant crashing has also been resolved. I think this was a problem with lemmy 0.17.2 and not this library. it still replies in all local communities however, is that intended?
from lemmy-bot.
It should not reply to all local communities. I will have to fix that.
from lemmy-bot.
Try using bot version 0.4.1 and see if it works now.
from lemmy-bot.
Sadly I can't upgrade my instance to 0.18.0, can I still test this version or would I need 0.18.0?
from lemmy-bot.
@thomasdouwes I think it should still work even if your instance is still one 0.17.x. The major difference between 0.17.x and 0.18.x is that the websocket API was removed. The bot uses the HTTP API now, but the HTTP API shouldn't have had any breaking changes between version.
from lemmy-bot.
I can't get the new version working on 0.17.4, I get UnhandledPromiseRejectionWarning: TypeError: Cannot read property '1' of null
when starting the bot. However, I have quickly set up a new 0.18.1 test instance on my PC and the bot is no longer replying to all local communities. I can't get my test instance federating for some reason but I assume that is also working.
Even though I can't use the fix on my instance I'm going to close this issue because the bug is fixed. thanks for the fix.
from lemmy-bot.
Related Issues (20)
- Program stops after some time with ETIMEDOUT error. HOT 12
- getUserId and getCommunityId dont always find the user/community HOT 2
- Add a dryrun mode for development
- How to identify if a person is a mod in the community? HOT 2
- Spam of logging in and other stuff HOT 3
- 0.18.1-rc.4 Is broke the bot totally HOT 10
- Invalid JSON response body when starting up HOT 7
- Bot creates a 502 Error
- Getting `user_already_exists` error after login HOT 6
- No editComment or editPost Bot Action? HOT 10
- First fetch works second not anymore HOT 6
- BotAction to follow a community
- Support for the resolveObject method as a BotAction HOT 1
- SQLITE_BUSY: database is locked HOT 5
- Detect if Post URL / Image / Title / Body changed? HOT 3
- Possible spam of (almost) useless console.log HOT 2
- Get Community (and Instance) Info/Sidebar HOT 1
- just sits at "user_already_exists"
- [Feature request] Optional flag to disable logs HOT 2
- How to list user posts & comments ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lemmy-bot.