Dutchy30

Untitled

Oct 4th, 2018
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. # Don't change this.
  2. config-version: 1
  3.  
  4.  
  5. # You will need to create a new application on
  6. # https://discordapp.com/developers/applications/me/create
  7. #
  8. # Give it a sensible name then click 'Create App'.
  9. # Scroll down and click 'Create a Bot User'.
  10. # Then reveal the bot token where it says 'Token: click to reveal'.
  11. # Finally paste this token here
  12. bot-token: ******
  13.  
  14. # Set this to the ID of the guild that the bot will be used
  15. # for and any in-game functionality will take effect here.
  16. # Get this by enabling Developer Mode in User Settings ->
  17. # Appearance and scrolling down to the advanced section. Once
  18. # enabled, right click on the guild, select 'Copy ID' and
  19. # paste it here.
  20. guild: ******
  21.  
  22.  
  23. # This is what is put before commands. For example,
  24. # when you do ?msg on a bot, the ? is the command
  25. # prefix.
  26. bot-prefix: '!'
  27.  
  28. # This is the settings for MySQL.
  29. mysql:
  30.  
  31. # The IP of the database.
  32. ip: 127.0.0.1
  33.  
  34. # The name of the database.
  35. database: mc_4?useSSL=false&
  36.  
  37. # The username for the database user.
  38. username: mc_4
  39.  
  40. # The password for the database user.
  41. password: *****
  42.  
  43.  
  44. # Presence for the bot.
  45. presence:
  46. enabled: true
  47.  
  48. # Case sensitive. One from: DO_NOT_DISTURB, IDLE, INVISIBLE, OFFLINE, ONLINE, UNKNOWN
  49. status: ONLINE
  50.  
  51. # Case sensitive. One from DEFAULT, LISTENING, WATCHING
  52. type: DEFAULT
  53.  
  54. # The text the bot is playing / listening to / watching
  55. text: DiscordMinecraft
  56.  
  57.  
  58. role-sync-enabled: true
  59.  
  60. ################
  61. ### Messages ###
  62. ################
  63.  
  64. # This is the message that will be sent if the user
  65. # does not have the correct permissions to execute the
  66. # command.
  67. no-permission-message: '**Error**: You do not have permission to execute this command.'
  68.  
  69. # Message when the condition [minArgs] is false.
  70. not-enough-args-message: '**Error**: Incorrect usage.'
  71.  
  72. # Message when the condition [maxArgs] is false.
  73. too-many-args-message: '**Error**: Incorrect usage.'
  74.  
  75. # Message when the condition [argsIsInt] or [argIsNumber] is false.
  76. invalid-args-message: '**Error**: Incorrect usage.'
  77.  
  78. # Message when the condition [isNameOfOnlinePlayer] is false.
  79. player-offline-message: '**Error**: Player not found.'
  80.  
  81.  
  82. ################
  83. ### Commands ###
  84. ################
  85.  
  86. # You can simply add commands to the bot as seen below:
  87. # This example is fully annotated and shows an implementation
  88. # of all functionality. It is recommended to save a copy of
  89. # this for future reference, but if you lose it you can
  90. # find it on the resource page.
  91. #
  92. # In this particular example, we are making a command that
  93. # allows moderators to message online players from Discord.
  94. #
  95. # Create a command by simply creating a new config key named
  96. # "command-{name}" with {name} being the command that should
  97. # be executed, for example in ?msg, "msg" is the name.
  98. command-msg:
  99.  
  100. # Within this, create a key for role. Set this to the name
  101. # of the role, or "everyone" if anyone can use it.
  102. role: Moderator
  103.  
  104. # Here you can set the conditions required for the command
  105. # to successfully execute and call the actions (lower down).
  106. # A list of all conditions with detailed descriptions can
  107. # be found on the resource page.
  108. #
  109. # Please note that conditions are checked in order and will
  110. # stop being checked once one is false.
  111. conditions:
  112.  
  113. # Here, we are checking that the amount of arguments is at
  114. # least 2. This because we need to supply the name of the
  115. # user and at least one word for the message.
  116. - '[minArgs] 2'
  117.  
  118. # The player's name is the first argument, so we are checking
  119. # that the first argument matches the name of an online
  120. # player.
  121. - '[isNameOfOnlinePlayer] 1'
  122.  
  123. # Actions are what will occur if all of the conditions evaluate
  124. # as true. The format is similar to that of the conditions section:
  125. # giving the type of action, then any data that goes with it. As
  126. # with conditions, we work chronologically through the list of
  127. # actions.
  128. actions:
  129.  
  130. # This sends a message to player in the first argument, containing
  131. # the sender's Discord name and the rest of the arguments.
  132. - '[messagePlayer] {1}|&lDISCORD: &r{SENDER} >> &o{2+}'
  133.  
  134. # This responds to the command, notifying the sender that the
  135. # message has been sent to the player.
  136. - '[botMessage] :white_check_mark: Message has been delivered.'
Advertisement
Add Comment
Please, Sign In to add comment