To infinity and beyond!

  • 2 Posts
  • 21 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle












  • When you decide to set it up, you need to create a user on your instance and fill in those details in the command line to run the thing. Also make sure to change the instance name to your name, otherwise it will not work.

    Other useful commands:

    docker rm --force lemmy-subscriber-bot To actually destroy the docker container if you want to start over

    docker logs lemmy-subscriber-bot To see if the thing is running and doing things.









  • 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'