-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.yml
95 lines (72 loc) · 3.06 KB
/
plugin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
###
### Required configuration for all plugins
###
# A name for the plugin
name: Discord auth
# Full class name of class implementing Neucore\Plugin\ServiceInterface or Neucore\Plugin\GeneralInterface.
phpClass: Neucore\Plugin\Discord\Service
# PHP namespace that should be loaded by the PSR-4 autoloader.
psr4Prefix: Neucore\Plugin\Discord
# Relative (to this file) path to the directory containing the classes of the above namespace.
psr4Path: src
###
### Required configuration for service plugins
###
# Defines if this service allows only one account per player instead of one per character.
oneAccount: true
# List of available account properties, possible values: username, password, email, status, name
properties:
- username
- status
# If this is not enabled and the account contains a password (see properties), the user will be able to see
# it only once directly after it was reset (see actions).
showPassword: false
# List of actions, possible values: update-account, reset-password
actions:
- update-account
###
### Optional configuration for all plugins
###
# Additional configuration for the plugin (supports multiline text). This is provided as the value of
# the PluginConfiguration::$configurationData property.
configurationData: |
TableName: database_table_name # Only allows the following chars: a-zA-Z0-9_
ServerId: 123 # Discord server ID
BotToken: abc # Discord application's bot token
OAuthRedirectUri: http://your.neucore.tld/plugin/{id}/callback
OAuthClientId: 456
OAuthClientSecret: def
Roles: # The Neucore player account needs one of these groups to get the Discord role
987: [1] # Discord role ID: Neucore group ID
Channels:
654: [9] # Discord channel ID: Neucore group ID
Nickname: '{characterName} [{corporationTicker}]'
NoNicknameChange: [654, 456] # Discord role IDs
DoNotKick: [543] # These members will never be kicked: Discord user ID
DisableKicks: false
###
### Optional configuration for service plugins
###
# List of link buttons. Placeholders for URL: {plugin_id}, {username}, {password}, {email}
URLs:
-
url: /plugin/{plugin_id}/login
title: Request Invitation
target: _self
-
url: https://discord.com/login
title: Discord Login
target: _blank
# Text above the list of accounts (supports multiline text).
textTop: Account for a Discord Server.
# Text below account table (supports multiline text).
textAccount:
'Status Nonmember: Click "Request Invitation" to be added to the server. To do this, you will need to
log into your Discord account, allow access to your username, and allow the app to join servers for you.
After you have been successfully invited, you can deauthorize this app in your user settings if you wish.
Status Active: Click the "Update Account" button to sync your Core groups with Discord roles. This also
happens automatically several times a day.'
# Text below the registration form/button (supports multiline text).
textRegister: Click "Register" to initialize your account.
# Text below an account with status "pending" (supports multiline text).
textPending: