2026-07-21 02:24:19 +07:00
# 🏠 Discord-Mobile-Playing-CLI
2022-05-05 17:32:37 +07:00
2022-05-05 19:10:45 +07:00
Discord currently only supports game activity on a mobile platform using Samsung Game Launcher, which is only available on Samsung devices.
2026-07-21 02:24:19 +07:00
Discord-Mobile-Playing-CLI is only a PoC that game activities can be implemented on another platform like jailbroken iOS ([iOS-DiscordPresence ](https://github.com/YuzuZensai/iOS-DiscordPresence )), or another kind of android distros by using the Discord API. Well, you can't do anything about the "Playing on Samsung Galaxy" for now.
2022-05-05 18:56:18 +07:00

2026-07-21 02:24:19 +07:00
## Prerequisites
2022-06-30 00:24:27 +07:00
2026-07-21 02:24:19 +07:00
- [Bun ](https://bun.sh/ )
2022-06-30 00:24:27 +07:00
2026-07-21 02:24:19 +07:00
## Installation
2022-05-05 19:06:57 +07:00
2022-06-30 00:24:27 +07:00
1. Clone this repository
2026-07-21 02:24:19 +07:00
2. Install dependencies with ``bun install` `
3. Copy ``.env.example`` to ``.env` ` and fill in your token
4. Run the script ``bun run dev` `
2022-05-05 19:06:57 +07:00
2026-07-21 02:24:19 +07:00
## Development
2022-06-30 00:26:58 +07:00
2026-07-21 02:24:19 +07:00
- ``bun run check` ` Typecheck, lint, and format-check the project
- ``bun run lint`` / ``bun run lint:fix` ` Lint (and autofix) with Biome
- ``bun run format`` / ``bun run format:fix` ` Check (and autofix) formatting with Biome
2022-06-30 00:26:58 +07:00
2026-07-21 02:24:19 +07:00
## Environment Variables
- ``TOKEN` ` Your Discord account token
## Commands
2022-05-05 18:56:18 +07:00
- ``set [BUNDLE_ID]` ` Set application bundle id
- ``start` ` Start showing the presence
- ``stop` ` Stop showing the presence
- ``update` ` Update the current presences with new bundle id
- ``exit` ` Exit the application
2026-07-21 02:24:19 +07:00
## API used
2022-05-05 18:22:49 +07:00
2022-05-05 18:56:18 +07:00
You do not need to authorize the Samsung Game Launcher OAuth to use this API
### POST /api/v6/presences
#### Headers
2022-05-05 18:22:49 +07:00
- ``Authorization` ` Your discord account token
2022-05-05 18:56:18 +07:00
#### Body (JSON)
2022-05-05 18:22:49 +07:00
- ``package_name` ` Application bundle id on Google Play store
- ``update` ` ** (START, UPDATE, STOP)** Status for the presences
2022-05-05 18:56:18 +07:00
```json
2022-05-05 18:22:49 +07:00
{
"package_name" : "com.YostarJP.BlueArchive" ,
"update" : "START"
}
```
2026-07-21 02:24:19 +07:00
## Disclaimer
2022-05-05 18:56:18 +07:00
2026-07-21 02:24:19 +07:00
Discord-Mobile-Playing-CLI utilizes API that is outside OAuth2/bot API scope.
2022-05-05 18:22:49 +07:00
``/api/v6/presences` `
2022-05-05 18:56:18 +07:00
Automating normal user accounts (generally called "self-bots") outside of the OAuth2/bot API is a **violation** of Discord [Terms Of service ](https://discord.com/terms ) & [Community Guidelines ](https://discord.com/guidelines ), and can result in account termination if found. **I do not take any responsibility, liability, or anything that happened on your Discord Account.**