Commands Used in The DefBot


This is a commands list for use with The DefBot, these commands allow a range of control over any messages that the bot sends or receives.


Client Message Commands


The client message commands are for received messages (messages sent by a client/user), in order for the bot to respond to the command it must be setup in the "DefBot Accounts" preferences for the account to have access to that command (it must be "turned on" for the account the user is logged in on), for some commands we recommend that they are never activated for security reasons, others we recommend to only allow admin account access, to prevent abuse of commands on the server.

 

Client Command
Description
Comments
/Commands A list of Commands  
/Agreement Server Agreement  
/ServerInfo The Server Info  
/Chat/'Msg' Send Chat  
/Msg/'Sock'/'Msg' Send Message  
/BroadCast/'Msg' BroadCast a Message We recommend that you only allow Admin access.
/Userlist A list of Users  
/UserInfo/'Sock' Full User Info  
/Find/'File Name' Search for a file  
/Kick/'Sock' Kick a user We recommend that you only allow Admin access.
/TempBan/'Sock' Temporarily Ban a user

We recommend that you only allow Admin access.

/PermBan/'Sock' Permanently Ban a user We recommend that you only allow Admin access.
/BanList Get the Ban List  
/ABan/'IP'/'Nick'/'Msg' Add Ban List Item We recommend that you only allow Admin access.
/EBanIP/'ID'/'IP' Edit Ban List IP We recommend that you only allow Admin access.
/EBanNick/'ID'/'Nick' Edit Ban List Name We recommend that you only allow Admin access.
/EBanMsg/'ID'/'Msg' Edit Ban List Msg We recommend that you only allow Admin access.
/RBan/'ID' Ban List Delete Item We recommend that you only allow Admin access.
/BotConInfo Get connect info We recommend that you leave this off.
/BotName/'New Name' Change Bot Name We recommend that you only allow Admin access.
/BotIcon/'New Icon #' Change Bot Icon We recommend that you only allow Admin access.
/BotIP/'New IP' Change Bot IP We recommend that you leave this off.
/BotLogin/'New Login' Change Bot Login We recommend that you leave this off.
/BotPass/'New Pass' Change Bot Password We recommend that you leave this off.
/Reconnect Reconnect Bot We recommend that you only allow Admin access.
/Disconnect Disconnect Bot We recommend that you only allow Admin access.
/DefBot Info about The DefBot This is always on, all accounts can call this command.

NOTE:
Sock is the user socket number, which is found out by doing a /userlist command first


Scripted Message Events Commands


Scripted Messages are set up in the "Messaging Events / Rule Enforcement" window, these commands when
typed into the message that will be sent to the user will return the information shown, read more about
Message Events in the read me for it.

Script Command
(User Data)
Description
<ip> Current User ip
<login> Current User Login.
<nick> Current User Nick Name.
<accname> Current User Account Name.
<Socket> Current User socket number.
<icon> Current User icon number.
<ServName> Current User server name.
<ServIP> Current User server ip.
<ServInfo> Current User server info.
<Downloads> Return a List of All files downloaded.
<Uploads> Return a List of All File Uploaded.
<Unfinished> Return a List of All incomplete uploads.
<TDownloads> Return Total files downloaded.
<TUploads> Return Total File Uploaded.
<TUnfinished> Return Total incomplete uploads.
<CurrD/Ls> Return current user Downloads.
<CurrFolderD/Ls> Return current user Folder Downloads.
<CurrU/Ls> Return current user uploads.
<CurrFolderU/Ls> Return current user folder uploads.
<CurrwaitD/Ls> Return current user Waiting Downloads.
<Commands> Returns commands list for the user.
<lastmsg> The Last Message the User Sent.

 


Date/Time Status


These commands will include the date or time information in any messages the bot sends if they are included in the message.

Script Command
(Date / Time)
Description
<date> Returns the Short Date.
<Ldate> Returns the Long User.
<time> Returns the Short Time.
<ltime> Returns the Long Time.
<sec> Returns the Current Seconds.
<min> Returns the Current Minutes.
<hrs> Returns the Current Hours.
<day> Returns the Current Day.
<month> Returns the Current Month.
<year> Returns the Current Year.



Server Status


These commands will include the server status information in any messages the bot sends if they are included in the message.

Script Command
(Server Status)

Description
<CurrUsers> Return number of Users login.
<TotalUsers> Return number total users.
<TimeConn> Return Connection time.
<Msgsent> Return number of messages sent.
<MsgRec> Return number of messages received.
<KickTotal> Return number of users kicked.
<BanTotal> Return number of users Banned.
<Downtotal> Return number of downloads.
<UpTotal> Return number of uploads.
<unTotal> Return number of unfinished uploads.
<AbsTotalUsers> Return the total number of users connected since counters reset.
<AbsMsgSent> Return the total number of users messages sent since counters reset.
<AbsMsgRec> Return the total number of users messages received since counters reset.
<AbsKickTotal>

Return the total number of users kicked since counters reset.

<AbsBanTotal> Return the total number of users banned since counters reset.



Other commands


These commands will perform various other functions.

Script Command
Description
Comments
<RndSpace> Returns a random number of spaces 0 - 10 Helps to stop the bot getting banned for spamming when included at the end of sent messages.

This counter shows the number of hits since the 21 September 2003

The DefBot Counter


Copyright © S&M Software 2004-2016