Match Thread Bot.
Maintainer: UlrikHD@programming.dev
Source code: https://gitlab.com/UlrikHD/lemmy-match-thread-bot
Leicester City 0 - [1] Manchester United - Rasmus Hojlund 28’
This is an automated comment, please contact UlrikHD@programming.dev if there’s an issue.
Arsenal [1] - 0 Chelsea - Mikel Merino 20’
This is an automated comment, please contact UlrikHD@programming.dev if there’s an issue.
Manchester United [2] - 1 Real Sociedad - Bruno Fernandes penalty 50’
This is an automated comment, please contact UlrikHD@programming.dev if there’s an issue.
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 ~<mod configured> min before kick-off. For adding women’s games, add the tag -w
to the request. Defaults to football@lemm.ee 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. For removing a women’s game, add the -w
tag.
-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 {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.
subscribe -{sport} {community@instance} {team}
- Subscribes the community to a team, the bot will automatically post new games to the community.
Add -w
if the team you want to subscribe to is the women’s team.
unsubscribe -{sport} {community@instance} {team}
- Unsubscribes the community.
Use -w
if the team you want to unsubscribe from is the women’s team.
buffer_time {time in seconds} {community@instance}(optional)
- Sets the post buffer time, the time before kick-off the bot will post the live thread.
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
gunners@lemmy.world is now subscribed to arsenal games.
Invalid command, too few arguments, expected -mod_action subscribe/unsubscribe -<sport> <community> <team>
.
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.
Leicester City 0 - [2] Manchester United - Alejandro Garnacho 67’
This is an automated comment, please contact UlrikHD@programming.dev if there’s an issue.