Hi,

I run the combination of Lemmy-easy-deploy (https://github.com/ubergeek77/Lemmy-Easy-Deploy) and lemmy-subscriber-bot (https://github.com/lflare/lemmy-subscriber-bot)

I can’t seem t get the bot working. Well, I get it to run, but after that it doesn’t do anything, I think. My “all” is still only the stuff I followed on my server.

Can anyone jump in to see what I’m doing wrong?

Steps I did:

log in to my Linux server
mkdir lemmybot
cd lemmybot
git clone https://github.com/lflare/lemmy-subscriber-bot
docker run --name lemmy-subscriber-bot -dt --env 'LEMMY_USERNAME=subscriber_bot' --env 'LEMMY_PASSWORD=subscriber_bot' --env 'LEMMY_DOMAIN=waste-of.space' lflare/lemmy-subscriber-bot

  • infamousbelgian@waste-of.spaceOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Sure, it seems like a user error?

    Do I need to create a user first on my instance?

    root@lemmy-server:~/lemmybot/lemmy-subscriber-bot# docker logs lemmy-subscriber-bot
    2023-07-11 11:02:27.636 | ERROR    | __main__:retrieve_jwt:87 - {"error":"couldnt_find_that_username_or_email"}
    Traceback (most recent call last):
      File "//bot.py", line 248, in <module>
        main()
      File "//bot.py", line 244, in main
        bot.start()
      File "//bot.py", line 49, in start
        self.retrieve_jwt()
      File "//bot.py", line 88, in retrieve_jwt
        raise e
      File "//bot.py", line 84, in retrieve_jwt
        self.jwt = r.json()["jwt"]
                   ~~~~~~~~^^^^^^^
    KeyError: 'jwt'
    
    • aaa @lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      2023-07-11 11:02:27.636 | ERROR | main:retrieve_jwt:87 - {“error”:“couldnt_find_that_username_or_email”} Traceback (most recent call last): File “//bot.py”, line 248, in <module> main() File “//bot.py”, line 244, in main bot.start() File “//bot.py”, line 49, in start self.retrieve_jwt() File “//bot.py”, line 88, in retrieve_jwt raise e File “//bot.py”, line 84, in retrieve_jwt self.jwt = r.json()[“jwt”]

      Yup, you will have to create a user first :)