mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-15 00:24:52 +09:00
Players log in to the web interface with Discord through OAuth2 with the identify scope, so no bot token is needed. After logging in they get a code from the login page and type /link-discord <code> in game to link that Factorio account. One Discord account can hold up to exp_discord.max_accounts Factorio accounts (default 3), and linking a name moves it off any other Discord account. Sessions and link codes live in memory on the controller plugin, the links are stored in database/exp_discord/accounts.json. The user page shows the linked Discord account and lets the user, or anyone with exp_discord.link.delete, unlink it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
55 lines
1.5 KiB
JSON
55 lines
1.5 KiB
JSON
{
|
|
"name": "@expcluster/discord",
|
|
"version": "7.0.0",
|
|
"description": "Clusterio plugin linking Factorio accounts to Discord accounts and logging in to the web interface with Discord",
|
|
"author": "Cooldude2606 <https://github.com/Cooldude2606>",
|
|
"license": "MIT",
|
|
"repository": "explosivegaming/ExpCluster",
|
|
"type": "module",
|
|
"main": "dist/node/index.js",
|
|
"scripts": {
|
|
"prepare": "tsc --build && webpack-cli --env production",
|
|
"test": "tap --type-strip-only --disable-coverage --allow-empty-coverage test/*.test.js",
|
|
"coverage": "tap --coverage-report=text test/*.test.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"peerDependencies": {
|
|
"@clusterio/controller": "workspace:^",
|
|
"@clusterio/host": "workspace:^",
|
|
"@clusterio/lib": "workspace:^",
|
|
"@clusterio/web_ui": "workspace:^"
|
|
},
|
|
"devDependencies": {
|
|
"@clusterio/controller": "workspace:^",
|
|
"@clusterio/host": "workspace:^",
|
|
"@clusterio/lib": "workspace:^",
|
|
"@clusterio/web_ui": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:",
|
|
"antd": "catalog:",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"react-router-dom": "catalog:",
|
|
"typescript": "catalog:",
|
|
"webpack": "catalog:",
|
|
"tap": "^21.1.0",
|
|
"webpack-cli": "catalog:",
|
|
"webpack-merge": "catalog:"
|
|
},
|
|
"dependencies": {
|
|
"@sinclair/typebox": "catalog:",
|
|
"@expcluster/lib_commands": "workspace:^",
|
|
"@expcluster/lib_util": "workspace:^"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"keywords": [
|
|
"clusterio",
|
|
"clusterio-plugin",
|
|
"factorio"
|
|
]
|
|
}
|