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
.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 Sunderland AFC - Norwich City
Request added to the live queue, the Live Thread will be posted ~16min before kick-off.
@[email protected] -football Norwich City - Burnley
Request added to the live queue, the Live Thread will be posted ~16min before kick-off.
This is a really neat bot, I hope c/football has enough traffic to create some good discussion in the match threads!
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.
Great, thanks!
@[email protected] -football [email protected] Switzerland - Spain
Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.
@[email protected] -football Manchester City - Fulham
Request added to the live queue, the Live Thread will be posted ~16min before kick-off.
@[email protected] -mod_action trust [email protected] [email protected]
https://sopuli.xyz/u/blaze is now a trusted user in [email protected]. The user can now request live threads without being rate limited or requiring whitelisted community access.
-mod_action ban [email protected] [email protected]
https://lemmy.world/u/testulrikhd is now banned in [email protected]. The user can no longer interact with bot in this community.
-mod_action rules
Rules for [email protected] as of 2024-09-07T14:41:32.241341+00:00:
Bot whitelisted for entire site:
False
Bot whitelisted for community:
True
Bot blacklisted for entire site:
False
Bot blacklisted for community:
False
Trusted users:
Username Community [email protected] [email protected] [email protected] [email protected] Banned users:
Username Community [email protected] [email protected]
@[email protected] -help
Hello! I am a bot that can create live threads on lemmy.
I can be called by either tagging me in a comment or by replying to me.
Usage:
For all (optional) community@instance inputs, if none given, will assume the community the message is sent from.
-football community@instance(optional {home team} - {away team}
- Sets up a game in the queue for live-thread creation. Thread is created ~16.0 min before kick-off. Defaults to [email protected] if no community is given.-remove {-sport} {community@instance}(optional) {home team} - {away team}
- Removes a game queued for live-thread creation. Only available for requester, mods and admins.-queue {-sport} {community@instance}(optional)
- Lists the current live threads queued for posting.-mod_action {command} {input}
- Various mod actions to set rules for the bot.admin_action {command} {input}
-message {message}
- Sends a message to bot maintainerMod commands:
rules {communityoptional)
- Shows the rules applied to the community. }(blacklist {communityoptional)
- Will no longer interact with community. }(remove_blacklist {communityoptional)
- Will interact with the community again. }(whitelist {communityoptional)
- Opens up the bot to post in the community. }(remove_whitelist {communityoptional)
- Removes the community from the whitelist. }(trust {username@instance} {community@instance}(optional)
- Removes rate limit restrictions for the user, all mods are trusted users for their communities.untrust {username@instance} {community@instance}(optional)
- Removes the trusted status for the user, can not apply to mods in their communities.ban {username@instance} {community@instance}(optional)
- The user can no longer interact with the bot in the given community.unban {username@instance} {community@instance}(optional)
- The user is removed from the ban list for the given community.Admin commands:
Same as mod commands, however admins can also add commands to their entire instance by using the format {-@instance}. Do note that community specific commands overrule instance-wide commands.
Source Code: https://gitlab.com/UlrikHD/lemmy-match-thread-bot
-football Republic of Ireland - England
Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.
-queue -football
Football_game queued up for posting in [email protected]:
Match-up Date republic of ireland - england 2024-09-07T16:00:00Z deleted by creator
deleted by creator
-remove -football republic of ireland - england
Game removed from live queue.
-football France - Belgium
Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.
-queue -football
Football_game queued up for posting in [email protected]:
Match-up Date norway - austria 2024-09-09T18:45:00Z france - belgium 2024-09-09T18:45:00Z paris saint-germain - brest 2024-09-14T19:00:00Z
-football Croatia - Poland
Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.
-queue -football
Football_game queued up for posting in [email protected]:
Match-up Date croatia - poland 2024-09-08T18:45:00Z
btw: from last match thread of ours, not sure if this is a bug on your end or ESPN’s, but Jorginho’s mononym seems to be causing a tiny bug
Thanks for the report, will fix it soon 👌
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] -football Manchester United - Tottenham Hotspur
Request added to the live queue, the Live Thread will be posted ~16min before kick-off.
@[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.
Unknown request, please reply with
-help
for a list of available commands. Reason given:No command given.
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.
@[email protected] -football Portsmouth - Norwich City
Request added to the live queue, the Live Thread will be posted ~16min before kick-off.
-football Dortmund - Barcelona
Request added to the live queue, the Live Thread will be posted ~16min before kick-off.
@[email protected] -football Queens Park Ranger - Norwich City
Request added to the live queue, the Live Thread will be posted ~16min before kick-off.