Advertisement
Dutchy30

Untitled

Sep 19th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. # Don't change this.
  2. config-version: 4
  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-id: ***
  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. cmd-prefix: '!'
  27.  
  28. # This is the message that will be sent if the user
  29. # does not have the correct permissions to execute the
  30. # command.
  31. no-permission-message: '**Error**: You do not have permission to execute this command.'
  32.  
  33. # Message when the condition [minArgs] is false.
  34. not-enough-args-message: '**Error**: Incorrect usage.'
  35.  
  36. # Message when the condition [maxArgs] is false.
  37. too-many-args-message: '**Error**: Incorrect usage.'
  38.  
  39. # Message when the condition [argsIsInt] or [argIsNumber] is false.
  40. invalid-args-message: '**Error**: Incorrect usage.'
  41.  
  42. # Message when the condition [isNameOfOnlinePlayer] is false.
  43. player-offline-message: '**Error**: Player not found.'
  44.  
  45.  
  46. # The game the bot is shown to be playing in Discord.
  47. bot-game: DiscordMinecraft
  48.  
  49. # This is whether the above option is enabled.
  50. use-bot-game: true
  51.  
  52.  
  53. ################
  54. ### Commands ###
  55. ################
  56.  
  57. # You can simply add commands to the bot as seen below:
  58. # This example is fully annotated and shows an implementation
  59. # of all functionality. It is recommended to save a copy of
  60. # this for future reference, but if you lose it you can
  61. # find it on the resource page.
  62. #
  63. # In this particular example, we are making a command that
  64. # allows moderators to message online players from Discord.
  65. #
  66. # Create a command by simply creating a new config key named
  67. # "command-{name}" with {name} being the command that should
  68. # be executed, for example in ?msg, "msg" is the name.
  69. command-msg:
  70.  
  71. # Within this, create a key for role. Set this to the name
  72. # of the role, or "everyone" if anyone can use it.
  73. role: Moderator
  74.  
  75. # Here you can set the conditions required for the command
  76. # to successfully execute and call the actions (lower down).
  77. # A list of all conditions with detailed descriptions can
  78. # be found on the resource page.
  79. #
  80. # Please note that conditions are checked in order and will
  81. # stop being checked once one is false.
  82. conditions:
  83.  
  84. # Here, we are checking that the amount of arguments is at
  85. # least 2. This because we need to supply the name of the
  86. # user and at least one word for the message.
  87. - '[minArgs] 2'
  88.  
  89. # The player's name is the first argument, so we are checking
  90. # that the first argument matches the name of an online
  91. # player.
  92. - '[isNameOfOnlinePlayer] 1'
  93.  
  94. # Actions are what will occur if all of the conditions evaluate
  95. # as true. The format is similar to that of the conditions section:
  96. # giving the type of action, then any data that goes with it. As
  97. # with conditions, we work chronologically through the list of
  98. # actions.
  99. actions:
  100.  
  101. # This sends a message to player in the first argument, containing
  102. # the sender's Discord name and the rest of the arguments.
  103. - '[messagePlayer] {1}|&lDISCORD: &r{SENDER} >> &o{2+}'
  104.  
  105. # This responds to the command, notifying the sender that the
  106. # message has been sent to the player.
  107. - '[botMessage] :white_check_mark: Message has been delivered.'
  108.  
  109.  
  110. # This is the settings for MySQL.
  111. mysql:
  112.  
  113. # The IP of the database.
  114. ip: 127.0.0.1
  115.  
  116. # The name of the database.
  117. database: mc_4
  118.  
  119. # The username for the database user.
  120. username: mc_4
  121.  
  122. # The password for the database user.
  123. password: ***
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement