欢迎加入!

注册后,您将能够与我们社区的其他成员进行讨论、分享和私信。

无论您是想寻求帮助、分享经验,还是结识志同道合的朋友,我们都期待您的参与!一起探索更多精彩内容吧。

立即注册! 加入群聊
  • 所有的免费插件都是同步外网更新,所有都是最新版!
Discord 身份验证

同步更新 Discord 身份验证 同步更新

没有下载权限
购买会员
Discord Auth 是一个简单的插件,允许玩家将他们的 Discord 帐户与 Steam 连接。

权限​

此插件使用权限系统。要分配权限,请使用 。要删除权限,请使用 。oxide.grant <user or group> <name or steam id> <permission>oxide.revoke <user or group> <name or steam id> <permission>
  • discordauth.auth -- authenticate 命令必需
  • discordauth.deauth -- deauthenticate 命令需要,建议不要将此权限授予 default 组

命令​

此插件使用相同的语法提供聊天和控制台命令。在聊天中使用命令时,请为其添加正斜杠前缀: '/'。
此插件提供通用聊天和控制台命令。在游戏聊天中使用命令时,请为其添加正斜杠前缀:。/

  • auth-- 生成玩家可以发送给机器人的代码
  • deauth-- 取消对播放器的身份验证

配置​

设置和选项可以在目录下的文件中进行配置。建议使用编辑器和验证器,以避免格式问题和语法错误。DiscordAuthconfig
{
"Settings": {
"Bot Token": "",
"Discord Server ID (Optional if bot only in 1 guild)": "",
"Auth Commands": [
"auth",
"authenticate"
],
"Deauth Commands": [
"deauth",
"deauthenticate"
],
"Oxide Groups to Assign": [
"authenticated"
],
"Discord Roles to Assign": [
"DiscordAuth"
],
"Revoke Oxide Groups on Deauthenticate": true,
"Revoke Discord Roles on Deauthenticate": true,
"Automatically Reauthenticate on Leaving and Rejoining the Discord Server": true,
"Automatically Deauthenticate Non Active Players": false,
"Player Considered Non Active After (Days)": 30.0,
"Discord Extension Log Level (Verbose, Debug, Info, Warning, Error, Exception, Off)": "Info"
},
"Authentication Code": {
"Code Lifetime (minutes)": 60,
"Code Length": 5,
"Code Case Insensitive Match": true,
"Code Characters": "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
}
}

地方化​

默认消息位于目录下的文件中。要添加对其他语言的支持,请创建一个新的语言文件夹(例如 对于德语),请将默认语言文件复制到新文件夹,然后自定义消息。DiscordAuthlang/ende
{
"Chat Format": "[#1874CD](Auth)[/#]: {0}",
"Code Generation": "Here is your code: [#1874CD]{0}[/#]\nJoin our [#EE3B3B]Discord[/#] and PM the code to the Discord Bot",
"Code Expired": "Your code has [#EE3B3B]Expired![/#]",
"Authenticated": "Thank you for authenticating your account",
"Game-Deauthenticated": "Successfully deauthenticated your account",
"Discord-Deauthenticated": "You have been deauthenticated from {0}",
"Discord-Deauthenticated-NonActive": "You have been deauthenticated from {0} because you haven't been active on the game server for {1} days",
"Already Authenticated": "You have already [#1874CD]authenticated[/#] your account, no need to do it again",
"Not Authenticated": "You are not authenticated",
"Group Revoked": "Your '{0}' Server Group(s) have been revoked! Reauthenticate to receive it",
"Roles Revoked": "Your '{0}' Discord Role(s) have been revoked! Reauthenticate to receive it",
"Join Granted": "Granted '{0}' Group(s) and '{1}' Discord Role(s)",
"Rejoin Granted": "Granted '{0}' Group(s) and '{1}' Discord Role(s) for joining {2} back",
"Unable to find code": "Sorry, we couldn't find your code, please try to authenticate again, If you haven't generated a code, please type /auth in-game",
"No Permission": "You dont have permission to use this command"
}

开发人员 API​

链接信息由 Discord Extension Link API 提供:

常见问题​

Q:我在哪里可以获取机器人令牌?
答:
请按照 Discord 扩展入门 中的步骤获取您的机器人令牌。

问:我是否需要托管 Discord 机器人?
答:
不可以。它不需要托管机器人。该机器人从 Discord 扩展进行处理和运行。

Q: 它具体是如何工作的?
A:
玩家可以使用 authenticate 命令在游戏中生成代码,然后直接向机器人发送 DM。这会将它们添加到 Discord 扩展链接数据、配置的 Oxide 组和配置的 Discord 角色中。
作者
xiaoguan
下载
0
查看
20
首次发布
最后更新

评分

0.00 星 0 星

来自xiaoguan的更多资源

后退
顶部