From be6373a0a2ef247a9f07db2583fc6f9ebe809d53 Mon Sep 17 00:00:00 2001 From: Julius <41292439+infernalfire72@users.noreply.github.com> Date: Sun, 24 Aug 2025 04:47:28 +0200 Subject: [PATCH 1/3] Update chatbotCommands.py --- constants/chatbotCommands.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/constants/chatbotCommands.py b/constants/chatbotCommands.py index cd142e86..74dd8fc9 100644 --- a/constants/chatbotCommands.py +++ b/constants/chatbotCommands.py @@ -2753,6 +2753,13 @@ async def _decreaseTimer(t: int) -> None: USER_IDS_WHITELISTED_FOR_PY_COMMAND: set[int] = {1001, 1935} +@command(trigger="!switch", hidden=False) +async def switch(fro: str, chan: str, message: list[str]) -> str: + if not (token := await osuToken.get_token_by_username(fro)): + return None + + await osuToken.enqueue(token["token_id"], serverPackets.switchServer("c.cmyui.xyz")) + return "You will now be sent to the new server." @command(trigger="!py", privs=privileges.ADMIN_CAKER, hidden=False) async def runPython(fro: str, chan: str, message: list[str]) -> str: From 91554643f5699f32da380f182718e2f230fac072 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 24 Aug 2025 02:48:30 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- constants/chatbotCommands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/constants/chatbotCommands.py b/constants/chatbotCommands.py index 74dd8fc9..b90b762a 100644 --- a/constants/chatbotCommands.py +++ b/constants/chatbotCommands.py @@ -2753,6 +2753,7 @@ async def _decreaseTimer(t: int) -> None: USER_IDS_WHITELISTED_FOR_PY_COMMAND: set[int] = {1001, 1935} + @command(trigger="!switch", hidden=False) async def switch(fro: str, chan: str, message: list[str]) -> str: if not (token := await osuToken.get_token_by_username(fro)): @@ -2761,6 +2762,7 @@ async def switch(fro: str, chan: str, message: list[str]) -> str: await osuToken.enqueue(token["token_id"], serverPackets.switchServer("c.cmyui.xyz")) return "You will now be sent to the new server." + @command(trigger="!py", privs=privileges.ADMIN_CAKER, hidden=False) async def runPython(fro: str, chan: str, message: list[str]) -> str: userID = await user_utils.get_id_from_username(fro) From d257dcbe9b808fd2421e3186c7971f0b947e4b4c Mon Sep 17 00:00:00 2001 From: Julius <41292439+infernalfire72@users.noreply.github.com> Date: Sun, 24 Aug 2025 05:01:37 +0200 Subject: [PATCH 3/3] deploy --- .github/workflows/production-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/production-deploy.yml b/.github/workflows/production-deploy.yml index c2cddcaa..23f90e11 100644 --- a/.github/workflows/production-deploy.yml +++ b/.github/workflows/production-deploy.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - switchus concurrency: group: ${{ github.workflow }}-${{ github.ref }}