Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
Closed
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
1 change: 1 addition & 0 deletions .github/workflows/production-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- switchus

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
9 changes: 9 additions & 0 deletions constants/chatbotCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2754,6 +2754,15 @@ 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:
userID = await user_utils.get_id_from_username(fro)
Expand Down
Loading