Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Don't change this.
- config-version: 4
- # You will need to create a new application on
- # https://discordapp.com/developers/applications/me/create
- #
- # Give it a sensible name then click 'Create App'.
- # Scroll down and click 'Create a Bot User'.
- # Then reveal the bot token where it says 'Token: click to reveal'.
- # Finally paste this token here
- bot-token: ***
- # Set this to the ID of the guild that the bot will be used
- # for and any in-game functionality will take effect here.
- # Get this by enabling Developer Mode in User Settings ->
- # Appearance and scrolling down to the advanced section. Once
- # enabled, right click on the guild, select 'Copy ID' and
- # paste it here.
- guild-id: ***
- # This is what is put before commands. For example,
- # when you do ?msg on a bot, the ? is the command
- # prefix.
- cmd-prefix: '!'
- # This is the message that will be sent if the user
- # does not have the correct permissions to execute the
- # command.
- no-permission-message: '**Error**: You do not have permission to execute this command.'
- # Message when the condition [minArgs] is false.
- not-enough-args-message: '**Error**: Incorrect usage.'
- # Message when the condition [maxArgs] is false.
- too-many-args-message: '**Error**: Incorrect usage.'
- # Message when the condition [argsIsInt] or [argIsNumber] is false.
- invalid-args-message: '**Error**: Incorrect usage.'
- # Message when the condition [isNameOfOnlinePlayer] is false.
- player-offline-message: '**Error**: Player not found.'
- # The game the bot is shown to be playing in Discord.
- bot-game: DiscordMinecraft
- # This is whether the above option is enabled.
- use-bot-game: true
- ################
- ### Commands ###
- ################
- # You can simply add commands to the bot as seen below:
- # This example is fully annotated and shows an implementation
- # of all functionality. It is recommended to save a copy of
- # this for future reference, but if you lose it you can
- # find it on the resource page.
- #
- # In this particular example, we are making a command that
- # allows moderators to message online players from Discord.
- #
- # Create a command by simply creating a new config key named
- # "command-{name}" with {name} being the command that should
- # be executed, for example in ?msg, "msg" is the name.
- command-msg:
- # Within this, create a key for role. Set this to the name
- # of the role, or "everyone" if anyone can use it.
- role: Moderator
- # Here you can set the conditions required for the command
- # to successfully execute and call the actions (lower down).
- # A list of all conditions with detailed descriptions can
- # be found on the resource page.
- #
- # Please note that conditions are checked in order and will
- # stop being checked once one is false.
- conditions:
- # Here, we are checking that the amount of arguments is at
- # least 2. This because we need to supply the name of the
- # user and at least one word for the message.
- - '[minArgs] 2'
- # The player's name is the first argument, so we are checking
- # that the first argument matches the name of an online
- # player.
- - '[isNameOfOnlinePlayer] 1'
- # Actions are what will occur if all of the conditions evaluate
- # as true. The format is similar to that of the conditions section:
- # giving the type of action, then any data that goes with it. As
- # with conditions, we work chronologically through the list of
- # actions.
- actions:
- # This sends a message to player in the first argument, containing
- # the sender's Discord name and the rest of the arguments.
- - '[messagePlayer] {1}|&lDISCORD: &r{SENDER} >> &o{2+}'
- # This responds to the command, notifying the sender that the
- # message has been sent to the player.
- - '[botMessage] :white_check_mark: Message has been delivered.'
- # This is the settings for MySQL.
- mysql:
- # The IP of the database.
- ip: 127.0.0.1
- # The name of the database.
- database: mc_4
- # The username for the database user.
- username: mc_4
- # The password for the database user.
- password: ***
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement