mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-22 23:33:12 +09:00
Add exp_discord plugin for Discord login and account linking
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>
This commit is contained in:
1 parent
68a964cf57
commit
8e9f780cc2
21 files changed
+1443
No files matched your search
@@ -47,6 +47,7 @@ const definitions = [
|
||||
["exp_scenario.command.kill.always", "/kill (any player)", "Kill any player, not just yourself."],
|
||||
["exp_scenario.command.kill_enemies", "/kill-enemies", "Kill all enemy units."],
|
||||
["exp_scenario.command.lawnmower", "/lawnmower", "Clean up biter corpse, decoratives and nuclear hole."],
|
||||
["exp_scenario.command.link_discord", "/link-discord", "Link your account to Discord with the code from the website.", true],
|
||||
["exp_scenario.command.locate", "/locate", "Opens remote view at the location of the player's last location.", true],
|
||||
["exp_scenario.command.me", "/me", "Sends an action message in the chat."],
|
||||
["exp_scenario.command.protect_area", "/protect-area", "Toggles area protection selection, hold shift to remove protection."],
|
||||
@@ -84,6 +85,7 @@ const definitions = [
|
||||
["exp_scenario.command.teleport", "/teleport", "Teleports a player to another player."],
|
||||
["exp_scenario.command.unassign_role", "/unassign-role", "Unassigns a role lower than your own from a player."],
|
||||
["exp_scenario.command.unjail", "/unjail", "Removes a player from jail, restoring their other roles."],
|
||||
["exp_scenario.command.unlink_discord", "/unlink-discord", "Remove the link between your account and Discord.", true],
|
||||
["exp_scenario.command.vlayer_info", "/vlayer-info", "Print all vlayer information."],
|
||||
["exp_scenario.command.waterfill", "/waterfill", "Replace tiles with shallow water."],
|
||||
["exp_scenario.decon.fast_trees", "Fast tree deconstruction", "Trees and rocks marked for deconstruction are removed instantly, when enabled from the toolbar."],
|
||||
|
||||
Reference in new issue
Block a user