Discord Auth1.4.0
Free
5
5 Views
5
5 Downloads
25.90 KB
File Size
December 29
Upload
December 24
Submitted
Discord Auth is a simple plugin allows players to connect their discord account with steam.
Permissions
This plugin uses the permission system. To assign a permission, use oxide.grant user or group name or steam id permission. To remove a permission, use oxide.revoke user or group name or steam id permission.- discordauth.auth -- Required for the authenticate command
- discordauth.deauth -- Required for the deauthenticate command would recommend not giving this permission to the default group
Commands
This plugin provides both chat and console commands using the same syntax. When using a command in chat, prefix it with a forward slash: `/`.This plugin provides universal chat and console commands. When using a command in game chat, prefix it with a forward slash: /.
- auth -- Generates a code which players can send to the bot
- deauth -- Deauthenticates the player
Configuration
The settings and options can be configured in the DiscordAuth file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.{
"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"
}
}
Localization
The default messages are in the DiscordAuth file under the lang/en directory. To add support for another language, create a new language folder (e.g. de for German) if not already created, copy the default language file to the new folder and then customize the messages.{
"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"
}



