Skip to content

Commit b2d7505

Browse files
Remove all the unneeded shite
1 parent 34e0add commit b2d7505

4 files changed

Lines changed: 1 addition & 18 deletions

File tree

cogs/make_member.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,3 @@ async def member_count(self, ctx: "TeXBotApplicationContext") -> None:
228228
f"{await fetch_community_group_members_count()} members! :tada:"
229229
)
230230
)
231-

cogs/startup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async def on_ready(self) -> None:
116116
except MSLMembershipError as msl_membership_error:
117117
logger.debug(
118118
"Failed to update community group member list cache on startup: %s",
119-
msl_membership_error
119+
msl_membership_error,
120120
)
121121

122122
if settings["STRIKE_PERFORMED_MANUALLY_WARNING_LOCATION"] != "DM":

utils/msl/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
fetch_community_group_members_count,
77
fetch_community_group_members_list,
88
is_id_a_community_group_member,
9-
update_group_member_list_cache,
109
)
1110

1211
if TYPE_CHECKING:
@@ -16,5 +15,4 @@
1615
"fetch_community_group_members_count",
1716
"fetch_community_group_members_list",
1817
"is_id_a_community_group_member",
19-
"update_group_member_list_cache",
2018
)

utils/msl/memberships.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"fetch_community_group_members_count",
2323
"fetch_community_group_members_list",
2424
"is_id_a_community_group_member",
25-
"update_group_member_list_cache",
2625
)
2726

2827

@@ -123,16 +122,3 @@ async def is_id_a_community_group_member(member_id: int) -> bool:
123122
async def fetch_community_group_members_count() -> int:
124123
"""Return the total number of members in your community group."""
125124
return len(await fetch_community_group_members_list())
126-
127-
128-
async def update_group_member_list_cache() -> bool:
129-
"""Update the cached community group member list."""
130-
try:
131-
await fetch_community_group_members_list()
132-
except MSLMembershipError as msl_membership_error:
133-
logger.debug(
134-
"Failed to update community group member list cache: %s", msl_membership_error
135-
)
136-
return False
137-
else:
138-
return True

0 commit comments

Comments
 (0)