Make a !Ban command and send it to the bot instead of the Mainchat.
• The first we need to do is to tell the client that it is receiving a UserCommand,
so we need to type like this.
• Then we need to make sure you don't get the command sent to you multiple times,
255 is a erase command and the number 7 tells that we want to clear all commands. • Then you need to end the command with a pipe.
You always put this command at the beginning of your command(s) and only once • Here i will explain how you set up a command that is sent to a bot instead of the mainchat. • We start with telling the client it receives a UserCommand.
• The next thing is to tell the client it´s a raw command. So type.
• Next on the to do list is to think out where the command should be visible.
• Then we need to choose a name for this command. I will use the topic command,
• Then we need to tell the client that the title is finished and the raw will begin. So type.
• Here we will get to the part where we want to send the bot a PM. So type.
• Then we need to know where to send it. If we want to send it to the YnHub headbot,
• Then the bot wants to know from who the command is coming. So here we type.
• Now we need to know who is typing the command. So here we type.
• Now we have got to the actual hubcommand. So type.
• Now we need a content-box to type the reason in. So here you type.
• The last thing we have to do is to end the command, so we type.
• Your command should look like this now.
• The final output should look like this.
|