Spyke

LiveThreadBot is now live

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 [email protected] 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 [email protected] 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 [email protected] or become a trusted user that can bypass the block -mod_action trust [email protected] [email protected]

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

View original on programming.dev

This is a really neat bot, I hope c/football has enough traffic to create some good discussion in the match threads!

7
lemmy.world

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?

4
Astrealixreply
lemmy.world

Hmmm, don't see our next UWCL game on there. Maybe cuz it's qualifiers still.

1

Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.

2
lemmy.world

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

2

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1
LiveThreadBotreply
lemmy.world

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 maintainer

Mod commands:

rules {community@instance}(optional) - Shows the rules applied to the community.

blacklist {community@instance}(optional) - Will no longer interact with community.

remove_blacklist {community@instance}(optional) - Will interact with the community again.

whitelist {community@instance}(optional) - Opens up the bot to post in the community.

remove_whitelist {community@instance}(optional) - 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

3
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.

2
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.

1
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.

2

Football_game queued up for posting in [email protected]:

Match-upDate
norway - austria2024-09-09T18:45:00Z
france - belgium2024-09-09T18:45:00Z
paris saint-germain - brest2024-09-14T19:00:00Z
1

Thanks, I'm glad too, for having a bot that works with SΓΌper Lig :)

2

You can whitelist the community (if you're a moderator or admin) with the command -mod_action whitelist [email protected]

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.

1
pisturkoreply
lemy.lol

Oh I thought the whitelist stuff was operated by bot owner. Makes sense now, thx.

2

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

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

2

Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.

1
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.

1
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

The login error seems to have its root issue in a Python Lemmy API library. I've sent a pull request to fix the issue, but it may take a week or two for the maintainer to see it.

If the lemmy.world servers goes down in the meantime the bot will likely fail again, so just tag me again if the bot doesn't respond within 15 minutes.

2
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Unknown request, please reply with -help for a list of available commands.

Reason given: No command given.

1
tomatolreply

Where do we post these requests to the bot? And why didn't it work for this match?

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1
LiveThreadBotreply
lemmy.world

Football_game queued up for posting in [email protected]:

Match-upDateWomen's game
ipswich town - aston villa2024-09-29T13:00:00ZFalse
swansea city - bristol city2024-09-29T14:00:00ZFalse
manchester united - tottenham hotspur2024-09-29T15:30:00ZFalse
norwich city - leeds united2024-10-01T18:45:00ZFalse
1

Unknown request, please reply with -help for a list of available commands.

Reason given: No command given.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

2

Unknown request, please reply with -help for a list of available commands.

Reason given: No arguments were given for queue command.

1

Please don't spam football requests as we don't want to drown the sub with inactive live threads. If you make a request, you should preferably be active in the live thread.

1
lemmy.world

Sorry. I was curious as to what it could pick up match wise. Did not mean any harm.

2
kameecodingreply
lemmy.world

awesome work on the bot, any plans to add a subscribe to team feature?

for example it would be nice to subscribe to all Manchester United games on the reddevils community.

2

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.

1

Football_game queued up for posting in [email protected]:

Match-upDate
paris saint-germain - brest2024-09-14T19:00:00Z
real sociedad - real madrid2024-09-14T19:00:00Z
girona - barcelona2024-09-15T14:15:00Z
1
LiveThreadBotreply
lemmy.world

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.

1

Football_game queued up for posting in [email protected]:

Match-upDate
paris saint-germain - brest2024-09-14T19:00:00Z
real sociedad - real madrid2024-09-14T19:00:00Z
girona - barcelona2024-09-15T14:15:00Z
trabzonspor - besiktas2024-09-15T17:00:00Z
1
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~1h, 0min before kick-off.

1

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.

2

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

1

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.

3

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.

3

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

2
pisturkoreply
lemy.lol

TBH, nothing. Just ran the command again :)

2

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16.0 min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

2

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

2
LiveThreadBotreply
lemmy.world

Request added to the live queue, the Live Thread will be posted ~16min before kick-off.

1
LiveThreadBotreply
lemmy.world

Unknown request, please reply with -help for a list of available commands.

Reason given: No command given.

1

Unknown request, please reply with -help for a list of available commands.

Reason given: No command given.

1
lemmy.world

Hey, mod from c/gunners here: how do I differentiate the mens' and womens' teams in the command? Cuz we play man city with both our teams on sunday and I don't think the bot is being able to differentiate, it seems to only be finding one of the matches (probably cuz of the same team problem)

1

I've added the women's team directly into the queue. I didn't account for for multiple teams having the exact same name and playing the same day against each other in the code when writing it, so I'll need fix the issue.

3