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
.com gunners .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
@[email protected] -football FK Crvena zvezda - Benfica
‘No live game found, wrong team names?’
Instruction given:
Football Live Thread Post to: [email protected] Home team: Fk crvena zvezda Away Team: Benfica
Please verify the team names and maybe check https://www.espn.com/soccer/scoreboard for your requested game.
@[email protected] -football Manchester City - Inter Milan
‘No live game found, wrong team names?’
Instruction given:
Football Live Thread Post to: [email protected] Home team: Manchester city Away Team: Inter milan
Please verify the team names and maybe check https://www.espn.com/soccer/scoreboard for your requested game.
@[email protected] -football Manchester City - Internazionale
Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.
@[email protected] -football AC Milan - Liverpool
Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.
-queue -football
No games are currently queued up for Football_game in [email protected].
-football Bayern Munich - Dinamo Zagreb
‘Bayern munich - Dinamo zagreb is more than 2 hours old.’
Instruction given:
Football Live Thread Post to: [email protected] Home team: Bayern munich Away Team: Dinamo zagreb
Please verify the team names and maybe check https://www.espn.com/soccer/scoreboard for your requested game.
I like how we’re the example and I didn’t even know about this bot till now. Might consider using this. Does it do women’s football as well?
If the game is casted on espn it is supported, which should be most professional leagues.
Hmmm, don’t see our next UWCL game on there. Maybe cuz it’s qualifiers still.
This is their espn page https://www.espn.com/soccer/team?id=19973
I can see they got a game lined up 22. September, close to the bottom of the score page
Edit:
yeah, no, we’ve a game on Wednesday too.
@[email protected] -football AS Monaco - FC Barcelona
Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.
@[email protected] -football Tottenham - Arsenal
Haven’t pushed it to repo yet, but this is currently the mapping for teams that may have their shorthand form requested instead of the name ESPN uses. Let me know if there’s any other teams I should add
Great!
Hmm, I should probably create a dict that links Tottenham to Tottenham Hotspur
‘No live game found, wrong team names?’
Instruction given:
Football Live Thread Post to: [email protected] Home team: Tottenham Away Team: Arsenal
Please verify the team names and maybe check https://www.espn.com/soccer/scoreboard for your requested game.
-football Tottenham Hotspur - Arsenal
Thanks !
Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.
can you guys add my Turkish Süper Lig community to allowed communities? I can add live threads to there if I can. [email protected]
Good to see a nice a community for the SuperLig!
Thanks, I’m glad too, for having a bot that works with Süper Lig :)
You can whitelist the community (if you’re a moderator or admin) with the command
-mod_action whitelist superlig@lemy.lol
Edit: you also don’t need to whitelist it to have it post threads there if you’re a mod. If you’re a mod you can make a request and it will post even if not whitelisted for general use.
Oh I thought the whitelist stuff was operated by bot owner. Makes sense now, thx.
I can do it, but I don’t want to push the bot on other communities. Everything I as a bot Maintainer can do, admins/mods can also do.
@[email protected] -queue -football [email protected]
Seems like it works now, what did you change?
TBH, nothing. Just ran the command again :)
Maybe at first the bot didn’t know about the community? But anyway, all good now :)
Football_game queued up for posting in [email protected]:
Match-up Date trabzonspor - besiktas 2024-09-15T17:00:00Z
@[email protected] -football [email protected] Galatasaray - Caykur Rizespor
‘Galatasaray - Caykur rizespor is more than 2 hours old.’
Instruction given:
Football Live Thread Post to: [email protected] Home team: Galatasaray Away Team: Caykur rizespor
Please verify the team names and maybe check https://www.espn.com/soccer/scoreboard for your requested game.
@[email protected] -queue -football [email protected]
Football_game queued up for posting in [email protected]:
Match-up Date trabzonspor - besiktas 2024-09-15T17:00:00Z
@[email protected] -football [email protected] Trabzonspor - Besiktas
Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.
@[email protected] -mod_action whitelist [email protected]
Bot whitelisted for [email protected]. The bot can now post live threads in this community without requiring elevated privileges.
@[email protected] -mod_action whitelist [email protected]
Request was denied for the given reason:
Bot requires user to have moderator privileges in superlig .lol to perform this action.
@[email protected], maybe an issue here, pisturko is a mod there
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.
It looks like it can’t track commands from my community too :/ https://lemy.lol/post/31221309
edit: whitelisted the community https://lemy.lol/post/30848216/12995429
It doesn’t seem like your tags on the other instance are being detected by lemmy.world. At least not within reasonably time.
Looks like nothing is reaching to lemmy.world. https://lemmy.world/post/19772630
I’m not sure which instance is faulty here. @[email protected]
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.
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.
Unknown request, please reply with
-help
for a list of available commands. Reason given:No command given.
@[email protected] -football -queue
Unknown request, please reply with
-help
for a list of available commands. Reason given:Unexpected format on request, expected a single spaced out dash separating the two teams.
@[email protected] -queue -football
Football_game queued up for posting in [email protected]:
Match-up Date paris saint-germain - brest 2024-09-14T19:00:00Z real sociedad - real madrid 2024-09-14T19:00:00Z girona - barcelona 2024-09-15T14:15:00Z trabzonspor - besiktas 2024-09-15T17:00:00Z
@[email protected] -queue -football
Football_game queued up for posting in [email protected]:
Match-up Date paris saint-germain - brest 2024-09-14T19:00:00Z real sociedad - real madrid 2024-09-14T19:00:00Z girona - barcelona 2024-09-15T14:15:00Z
@[email protected] -football Trabzonspor - Besiktas
Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.