Update: To add or remove women’s game’s, you now need to add -w to the command. E.g. -football -w Barcelona - Liverpool or -remove -football -w Barcelona - Liverpool This is due to edge cases where men’s and women’s team share name and play against the same opponent on the same day. Women’s match thread will also be marked with [Women’s game] in the title.

As some of you may have seen, the community now has a match thread bot to help with automating creation and updating match threads.

The bot takes a request in the format -football football@lemmy.world Barcelona - Real Madrid and will look up to 6 days ahead for an upcoming match and add it to a queue. ~15 minutes before kick off it will make a post that it will continuously update with available score, stats and commentary.

To make a request you can either tag the bot or reply to one of the bot’s comments. See the comments for an interaction example.

The bot will work in any community federated with lemmy.world so if you want to create a live thread in e.g. c/gunners you could make a request like this -football gunners@lemmy.world Arsenal - Tottenham Hotspur

Do note that the bot requires approval from a mod or admin to post in a community. So unless you’re a mod/admin, you’ll need to ask them to approve the bot via -mod_action whitelist gunners@lemmy.world or become a trusted user that can bypass the block -mod_action trust username@instance.com gunners@lemmy.world

For a more detailed and technical overview of the bot’s capabilities, please check the readme in the gitlab repo: https://gitlab.com/UlrikHD/lemmy-match-thread-bot

Example output of a live thread: https://lemmy.ml/post/18633476

  • pisturko
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    @LiveThreadBot@lemmy.world -mod_action whitelist superlig@lemy.lol

    • LiveThreadBot@lemmy.worldB
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      Request was denied for the given reason: Bot requires user to have moderator privileges in superlig@lemy.lol to perform this action.

        • UndercoverUlrikHD@programming.devOPM
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          2 months ago

          Seems like federation sync between lemmy.world and lemy.lol is funky. The bot did detect the mod status correctly on second try, though there should be no reason it didn’t detect it on first ping. It’s just parsing response json after all.

          The account also doesn’t receive tags from lemy.lol for some reason, but that’s an instance issue as I can’t see tags when logging into the account on boost.

        • LiveThreadBot@lemmy.worldB
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 months ago

          Unknown request, please reply with -help for a list of available commands. Reason given: No command given.

              • UndercoverUlrikHD@programming.devOPM
                link
                fedilink
                English
                arrow-up
                3
                ·
                edit-2
                2 months ago

                Yeah there is some federation issues. From a lemmy.world account I can’t see any comments on superlig.

                I’ve set the bot to subscribe to superlig, so hopefully lemmy.world will start to sync activity from that community.

                Edit: for the record, it’s the same for programming.dev as it is for lemmy.world. lemmy.ml only sees the latest post, with no comments.

                • pisturko
                  link
                  fedilink
                  English
                  arrow-up
                  3
                  ·
                  2 months ago

                  I had actually removed the previous post and created a new one. I just commented to the new post to test it and it appears to be federated to both lemmy.world and programming.dev now. Since the bot responded to my comment, I guess the problem was about federation.

                  • UndercoverUlrikHD@programming.devOPM
                    link
                    fedilink
                    English
                    arrow-up
                    3
                    ·
                    2 months ago

                    Good to hear, let me know if any other problems arise. And just be aware that there will likely be some minutes of latency for the match threads since each edit have to federate from world to lemy.