How to Setup Nightbot and Add Commands

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • How to Setup Nightbot and Add Commands
    To add commands to Nightbot and include a description for each command, follow these steps:
    1. *Log in to Nightbot:*
    Go to the [Nightbot website](nightbot.tv/) and log in with your Twitch or TH-cam account.
    2. *Access the Commands Page:*
    Once logged in, navigate to the "Commands" section from the dashboard.
    3. *Add a New Command:*
    - Click on the "Add Command" button.
    - In the "Command" field, enter the command name prefixed with an exclamation mark (e.g., `!hello`).
    - In the "Message" field, enter the response you want Nightbot to give when the command is used.
    - Optionally, you can also fill in the "Alias" field if you want this command to trigger another command.
    4. *Add a Description (Optional):*
    While Nightbot does not have a native "description" field, you can include a brief description directly in the "Message" field or use the command list to provide details. Here are two approaches:
    *A. Description in the Message:*
    - In the "Message" field, you can format the command to include a description.
    ```
    Command: !hello
    Message: "This command greets the user. Hello, $(user)!"
    ```
    *B. Use Custom Commands to List Descriptions:*
    - Create a command like `!commands` that lists all commands with their descriptions.
    ```
    Command: !commands
    Message: "!hello - Greets the user. !info - Provides information about the stream."
    ```
    5. *Save the Command:*
    Click the "Submit" button to save the new command.
    If you want to add a command `!hello` that greets the user and includes a description in the response, you could set it up like this:
    - *Command:* `!hello`
    - *Message:* `"This command greets the user. Hello, $(user)!"`
    If you prefer to keep your descriptions separate, you can create a `!commands` command:
    - *Command:* `!commands`
    - *Message:* `"!hello - Greets the user. !info - Provides information about the stream."`
    By using one of these methods, you can provide users with helpful descriptions of your Nightbot commands.

ความคิดเห็น •