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.
$UserCommand

• Then we need to make sure you don't get the command sent to you multiple times,
   when you log in and out of your hub.<BR> In order to get this to work we need to type like this.

255 7

   255 is a erase command and the number 7 tells that we want to clear all commands.
   Userlist menu, hubtab and the search/filelist window. 1 + 2 + 4 = 7
   Look in the <Type> and <contexts> explanations for further details.

• Then you need to end the command with a pipe.
   It tells your client that the command has ended. " | "
• So the first command should look like this.

$UserCommand 255 7|

   You always put this command at the beginning of your command(s) and only once
   So if you use more then one raw, then you should start with this,
   then build your commands after it.

• 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.

$UserCommand

• The next thing is to tell the client it´s a raw command. So type.

1

• Next on the to do list is to think out where the command should be visible.
   Here i will chose the userlist. Cause i will use the Ban command as an example,
   that can take multiple %[nick] arguments. So type

2

• Then we need to choose a name for this command. I will use the topic command,
   so we name it.

Ban

• 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.

$TO:

• Then we need to know where to send it. If we want to send it to the YnHub headbot,
   then we type -YnHub- here. Cause the headbot is called -YnHub- by default in YnHub.
   But you change the name to whatever you have named the bot offcource.

-YnHub-

• Then the bot wants to know from who the command is coming. So here we type.

From: %[mynick]

• Now we need to know who is typing the command. So here we type.

$<%[mynick]>

• Now we have got to the actual hubcommand. So type.

!ban

• Now we need a content-box to type the reason in. So here you type.

%[line:Reason]

• The last thing we have to do is to end the command, so we type.

&#124;|

• Your command should look like this now.

$UserCommand 1 3 Ban$$TO: -YnHub- From: %[mynick] $<%[mynick]> !ban %[line:Reason]&124;|

• The final output should look like this.

$UserCommand 255 7|$UserCommand 1 3 Ban$$TO: -YnHub- From: %[mynick] $<%[mynick]> !ban %[line:Reason]&#124;|