Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions cogs/ERLC.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ async def operate_and_reload_serverinfo(
queue: int = await self.bot.prc_api.get_server_queue(
guild_id, minimal=True
) # this only returns the count
client = self.bot.roblox
client = roblox.Client()

embed1 = discord.Embed(title=f"{status.name}", color=BLANK_COLOR)
embed1.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
Expand All @@ -881,14 +881,10 @@ async def operate_and_reload_serverinfo(
),
inline=False,
)
try:
owner_name = (await client.get_user(status.owner_id)).name
except:
owner_name = "Unknown"
embed1.add_field(
name="Server Ownership",
value=(
f"> **Owner:** [{owner_name}](https://roblox.com/users/{status.owner_id}/profile)\n"
f"> **Owner:** [{(await client.get_user(status.owner_id)).name}](https://roblox.com/users/{status.owner_id}/profile)\n"
f"> **Co-Owners:** {f', '.join([f'[{user.name}](https://roblox.com/users/{user.id}/profile)' for user in await client.get_users(status.co_owner_ids, expand=False)])}"
),
inline=False,
Expand Down
397 changes: 0 additions & 397 deletions cogs/Sessions.py

This file was deleted.

3 changes: 1 addition & 2 deletions erm.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ async def setup_hook(self) -> None:
self.server_keys = ServerKeys(self.db, "server_keys")
self.maple_county = self.mongo[f"{f"{dbname}_" if dbname != "erm" else ""}MapleCounty"]
self.mc_keys = MapleKeys(self.maple_county, "Auth")
self.sessions = Document(self.db, "sessions")


self.staff_connections = StaffConnections(self.db, "staff_connections")
self.ics = IntegrationCommandStorage(self.db, "logged_command_data")
self.actions = Actions(self.db, "actions")
Expand Down
41 changes: 0 additions & 41 deletions tasks/check_sessions.py

This file was deleted.

1 change: 0 additions & 1 deletion tasks/iterate_prc_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ async def process_guild(bot, items, semaphore):
except Exception as e:
logging.warning(f"error processing guild: {e}")

await iterate_prc_logs(bot)



Expand Down
103 changes: 0 additions & 103 deletions ui/CustomModals.py

This file was deleted.

8 changes: 0 additions & 8 deletions ui/Selects.py

This file was deleted.

149 changes: 0 additions & 149 deletions ui/Sessions.py

This file was deleted.

5 changes: 1 addition & 4 deletions utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,4 @@
},
"remove_ingame_perms": False,
"end_shift": False
}

CUSTOM_IDS_FOR_SESSIONS = ["vote_button", "view_votes_button"]
SESSION_VIEW_TYPES = ["vote", "start", "shutdown"]
}
6 changes: 3 additions & 3 deletions utils/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, connection: AsyncDatabase, document_name):
self.logger = logging.getLogger(__name__)

# <-- Pointer Methods -->
async def update(self, dict) -> None:
async def update(self, dict):
"""
For simpler calls, points to self.update_by_id
"""
Expand All @@ -46,7 +46,7 @@ async def delete(self, id):
await self.delete_by_id(id)

# <-- Actual Methods -->
async def find_by_id(self, id) -> dict | None:
async def find_by_id(self, id):
"""
Returns the data found under `id`
Params:
Expand Down Expand Up @@ -149,7 +149,7 @@ async def increment(self, id, amount, field):
"""
await self.db.update_one({"_id": id}, {"$inc": {field: amount}})

async def get_all(self) -> list[dict]:
async def get_all(self):
"""
Returns a list of all data in the document
"""
Expand Down
2 changes: 1 addition & 1 deletion utils/prc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ async def send_test_request(self, server_key: str) -> int | ServerStatus:
)
)

async def get_server_players(self, guild_id: int) -> list[Player]:
async def get_server_players(self, guild_id: int) -> list:
status_code, response_json = await self._send_api_request(
"GET", "/server/players", guild_id
)
Expand Down
Loading
Loading