We understand that some users in the fediverse don’t want to see sports content and are frustrated with Fanaticus’s game bots’ daily posts.
Currently, lemmy doesn’t support blocking entire instance’s at a user level. Because of that limitation, I am providing a list of the current communities on Fanaticus that have active game bots and a little python script so users can block those communities.
Here's a list of the communities that currently have a game bots running:
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
If you're comfortable with coding, there's an API endpoint to block a community. I threw together a little python script that would block all the above (I think 🙂).
from plemmy import LemmyHttp
# must include protocol e.g. https://lemmy.world
pl = LemmyHttp("INSTANCE_NAME_HERE")
username = "USERNAME_HERE"
password = "PASSWORD_HERE"
pl.login(username, password)
fanaticus_communities = [
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
]
for comm in fanaticus_communities:
print("Getting community: ", comm)
commRes = pl.get_community(name=comm).json()
if commRes and commRes['community_view']:
commId = commRes['community_view']['community']['id']
print("Blocking community: ", comm, " communityId: ", commId)
pl.block_community(True, commId)
print("Successfully blocked community: ", comm)
else:
print("Failed to find community: ", comm)
In the future, we are planning on adding the game bots for the other major sports as well (they’re not in season now) so I will update this script as those bots come online.