Advertisement
Dutchy30

Untitled

Oct 4th, 2018
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.78 KB | None | 0 0
  1. # Don't change this
  2. config-version: 2
  3.  
  4. # You will need to create a new application on
  5. # https://discordapp.com/developers/applications/me/create
  6. #
  7. # Give it a sensible name then click 'Create App'.
  8. # Scroll down and click 'Create a Bot User'.
  9. # Then reveal the bot token where it says 'Token: click to reveal'.
  10. # Finally paste this token here
  11. bot-token: '*****'
  12.  
  13. # Set this to the ID of the guild that the bot will be used
  14. # for and any in-game functionality will take effect here.
  15. # Get this by enabling Developer Mode in User Settings ->
  16. # Appearance and scrolling down to the advanced section. Once
  17. # enabled, right click on the guild, select 'Copy ID' and
  18. # paste it here.
  19. guild: *****
  20.  
  21. # This is whether you are using BungeeCord. Install the plugin
  22. # on a BungeeCord server as well if you are.
  23. bungee: true
  24.  
  25.  
  26. # Presence for the bot.
  27. presence:
  28. enabled: true
  29.  
  30. # Case sensitive. One from: DO_NOT_DISTURB, IDLE, INVISIBLE, OFFLINE, ONLINE, UNKNOWN
  31. status: ONLINE
  32.  
  33. # Case sensitive. One from DEFAULT, LISTENING, WATCHING
  34. type: DEFAULT
  35.  
  36. # The text the bot is playing / listening to / watching
  37. text: DiscordMinecraft
  38.  
  39.  
  40. # This is the settings for MySQL, if you wish to use it for
  41. # data. If MySQL is disabled, YAML will be used by default.
  42. mysql:
  43.  
  44. # Whether or not to use MySQL for data.
  45. enabled: true
  46.  
  47. # The IP of the database.
  48. ip: 127.0.0.1
  49.  
  50. # The name of the database.
  51. database: mc_4?useSSL=false&
  52.  
  53. # The username for the database user.
  54. username: mc_4
  55.  
  56. # The password for the database user.
  57. password: *****
  58.  
  59.  
  60. # The character used before the command.
  61. bot-prefix: '!'
  62.  
  63. role-sync:
  64. enabled: true
  65.  
  66. # The Discord role (case sensitive) that should be synced with Minecraft.
  67. roles:
  68. - Admin
  69. - Moderator
  70.  
  71.  
  72. chat-sync:
  73. enabled: true
  74. channel-id: *****
  75.  
  76. # How the messages will be formatted in-game and in Discord.
  77. # %s (sender name)
  78. # %m (message)
  79. chat-format: '&e&l%s &f>> &e%m'
  80. from-discord-chat-format: '&e&l%s &f>> &e%m'
  81. discord-chat-format: '**%s**: %m'
  82.  
  83. # Whether players will automatically be able to see chat
  84. # sync messages when they login. If this is disabled, they
  85. # will have to manually enable this every login typing /tdc.
  86. enable-on-join: true
  87.  
  88.  
  89. console-sync:
  90. enabled: false
  91. channel-id: 123456789
  92.  
  93. # This is the amount of console logs required for one message
  94. # to be sent in Discord. Set this to higher the faster your
  95. # console. This does not affect log messages when interacting
  96. # with the console from the Discord.
  97. logs-per-message: 10
  98.  
  99.  
  100. # Settings for the /discord command. The intention of this command
  101. # is to direct players to the Discord server.
  102. discord-command:
  103.  
  104. # Set to true to enable this command.
  105. enabled: true
  106.  
  107. # An invite link to the Discord server.
  108. discord-link: ****
  109.  
  110. # The message to send when the command is activated. The {LINK}
  111. # variable is the instant invite link specified above.
  112. message: '&6Join our Discord at: &7&n{LINK}'
  113.  
  114.  
  115. discord-say-command:
  116. enabled: true
  117.  
  118.  
  119. ################
  120. ### Messages ###
  121. ################
  122.  
  123. # This is the message that will be sent if the user
  124. # does not have the correct permissions to execute the
  125. # command.
  126. no-permission-message: '**Error**: You do not have permission to execute this command.'
  127.  
  128. # Message when the condition [minArgs] is false.
  129. not-enough-args-message: '**Error**: Incorrect usage.'
  130.  
  131. # Message when the condition [maxArgs] is false.
  132. too-many-args-message: '**Error**: Incorrect usage.'
  133.  
  134. # Message when the condition [argsIsInt] or [argIsNumber] is false.
  135. invalid-args-message: '**Error**: Incorrect usage.'
  136.  
  137. # Message when the condition [isNameOfOnlinePlayer] is false.
  138. player-offline-message: '**Error**: Player not found.'
  139.  
  140. discord-say-message: '**From Minecraft ({player})**: {message}'
  141.  
  142. # These are the in-game messages that can be configured.
  143. messages:
  144. no-permission: '&cYou don''t have permission to execute this command!'
  145. invalid-usage: '&cInvalid command usage.'
  146. already-linked: '&cYou have already linked your account.'
  147. sent-message-to: 'Message sent to: {channel}'
  148. toggled-discord-chat: 'Discord chat has been toggled: {status}.'
  149. send-on-discord: '&7You need to confirm on Discord! Send the command &a?confirm {code} {username} &7within 10 minutes to confirm!'
  150. removed-link: '&7Removed link.'
  151.  
  152.  
  153. ################
  154. ### Commands ###
  155. ################
  156.  
  157. # You can simply add commands to the bot as seen below:
  158. # This example is fully annotated and shows an implementation
  159. # of all functionality. It is recommended to save a copy of
  160. # this for future reference, but if you lose it you can
  161. # find it on the resource page.
  162. #
  163. # In this particular example, we are making a command that
  164. # allows moderators to message online players from Discord.
  165. #
  166. # Create a command by simply creating a new config key named
  167. # "command-{name}" with {name} being the command that should
  168. # be executed, for example in ?msg, "msg" is the name.
  169. command-msg:
  170.  
  171. # Within this, create a key for role. Set this to the name
  172. # of the role, or "everyone" if anyone can use it.
  173. role: Moderator
  174.  
  175. # Here you can set the conditions required for the command
  176. # to successfully execute and call the actions (lower down).
  177. # A list of all conditions with detailed descriptions can
  178. # be found on the resource page.
  179. #
  180. # Please note that conditions are checked in order and will
  181. # stop being checked once one is false.
  182. conditions:
  183.  
  184. # Here, we are checking that the amount of arguments is at
  185. # least 2. This because we need to supply the name of the
  186. # user and at least one word for the message.
  187. - '[minArgs] 2'
  188.  
  189. # The player's name is the first argument, so we are checking
  190. # that the first argument matches the name of an online
  191. # player.
  192. - '[isNameOfOnlinePlayer] 1'
  193.  
  194. # Actions are what will occur if all of the conditions evaluate
  195. # as true. The format is similar to that of the conditions section:
  196. # giving the type of action, then any data that goes with it. As
  197. # with conditions, we work chronologically through the list of
  198. # actions.
  199. actions:
  200.  
  201. # This sends a message to player in the first argument, containing
  202. # the sender's Discord name and the rest of the arguments.
  203. - '[messagePlayer] {1}|&lDISCORD: &r{SENDER} >> &o{2+}'
  204.  
  205. # This responds to the command, notifying the sender that the
  206. # message has been sent to the player.
  207. - '[botMessage] :white_check_mark: Message has been delivered.'
  208.  
  209.  
  210. # These are the commands that will be executed when the player links their
  211. # account with Discord. Set to `link-reward-commands: []` for no command to
  212. # be executed. The {PLAYER} variable is the name of the player who has linked
  213. # their account.
  214. link-reward-commands:
  215. - 'msg {PLAYER} hello'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement