mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-24 07: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
@@ -0,0 +1,10 @@
|
||||
[exp-discord]
|
||||
linked=Your account is now linked to the Discord account __1__.
|
||||
linked-to=Your account is linked to the Discord account __1__. Use /unlink-discord to remove it.
|
||||
unlinked=Your account is no longer linked to the Discord account __1__.
|
||||
not-linked=Your account is not linked to a Discord account. Log in with Discord on the website to get a code, then use /link-discord <code>.
|
||||
|
||||
[exp-discord_commands]
|
||||
description-link=Links your account to Discord using the code from the website, or shows the account you are linked to.
|
||||
description-unlink=Removes the link between your account and Discord.
|
||||
arg-code=Code shown on the website after logging in with Discord.
|
||||
Reference in new issue
Block a user