2.7 KiB
🏠 Discord-Mobile-Playing-CLI
Warning
Deprecated. This repository will be archived. Samsung ended its Discord integration in Gaming Hub on January 31, 2024 (Discord partnership terminated), and Discord has since removed the
/api/v6/presencesendpoint this project relies on (it now returns404 Not Found). There is no known replacement endpoint, so this tool no longer works and will not be updated further.
Discord currently only supports game activity on a mobile platform using Samsung Game Launcher, which is only available on Samsung devices.
Discord-Mobile-Playing-CLI is only a PoC that game activities can be implemented on another platform like jailbroken iOS (iOS-Discord-Presence), 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.
Prerequisites
Installation
- Clone this repository
- Install dependencies with
bun install - Copy
.env.exampleto.envand fill in your token - Run the script
bun run dev
Development
bun run checkTypecheck, lint, and format-check the projectbun run lint/bun run lint:fixLint (and autofix) with Biomebun run format/bun run format:fixCheck (and autofix) formatting with Biome
Environment Variables
TOKENYour Discord account token
Commands
set [BUNDLE_ID]Set application bundle idstartStart showing the presencestopStop showing the presenceupdateUpdate the current presences with new bundle idexitExit the application
API used
You do not need to authorize the Samsung Game Launcher OAuth to use this API
POST /api/v6/presences
Headers
AuthorizationYour discord account token
Body (JSON)
package_nameApplication bundle id on Google Play storeupdate(START, UPDATE, STOP) Status for the presences
{
"package_name": "com.YostarJP.BlueArchive",
"update": "START"
}
License
Disclaimer
Caution
Discord-Mobile-Playing-CLI utilizes API that is outside OAuth2/bot API scope.
/api/v6/presencesAutomating normal user accounts (generally called "self-bots") outside of the OAuth2/bot API is a violation of Discord Terms Of service & Community Guidelines, and can result in account termination if found. I do not take any responsibility, liability, or anything that happened on your Discord Account.
