Date & Time 
|A handy alarm clock, allowing to add in a timer in your Darkbot, which will activate at a given time. Times can be set in minutes, hours, and days. Just add the prefix of h (hour), m (minute), or d (day) before the amount of time you want it at.|
|Command||ALARM | ALARMCLOCK|
|Syntax||<DB> ALARM <time type: d/h/m><time duration> <reminder data>|
!alarmclock m1 one minute timer.
<DB>: BotUser, alarmclock set to go off in 1 minute, 0 secs
... 1 minute later ...
<DB>: ALARMCLOCK by BotUser!~userid@userhost: one minute timer.
|Related Messages||(if any parameter is missing): -DB- Syntax: <time type: d/h/m><time> <text to say>|
|Related Procedures||Check defines.h file [#define DBTIMERS] if you want to enable or disable the the alarm clock function|
|A handy calculator. Functions are: "+" (addition); "-" (subtraction); "*" (multiplication); "/" (division).|
|Command||CALC | MATH|
|Syntax||<DB> CALC <value> < + | - | * | / > <value>|
|Example||BotUser: DB calc 1+1
|Related Messages||- (if used incorrect
BotUser: Illegal operation!
-(if value is missing):
DB: BotUser: Division by zero error!
|Related Procedures||Check defines.h file [#define DO_MATH_STUFF] if you want to enable or disable the calculator.|
|Displays the character length of the given string.|
|Syntax||<DB> LENGTH <data>|
|Example||BotUser: DB length
DB: BotUser: it was 28 chars long.
|Date & Time|||
|Displays date and time of the local machine where Darkbot is running|
|Command||DATE | TIME|
DB: BotUser, Wen Dec 1 09:10:51 1999.
|Sends a notice to the user with a brief run down on how to use Darkbot|
-DB- I can be triggered by various forms of speech, all which must be addressed to me, in one of the following formats: DB, DB: DB: or even DB .... In my database, you can find a topic by saying my nick, <topic> . e.g.; DB, nuke ..........to do a search on a word, or partial text, just type: <mynick>, search <text> ... eg; DB, search nuke
-DB- I can also be triggered with even more human formats: DB, who is bill gates? .. You can also phrase it in a question: DB, where is msie? ...For more info about me, visit http://darkbot.net
|Replies "PONG" on the channel to gauge how lagged you or Darkbot is.|
|Returns the time elapsed in comparison to the current time of the box Darkbot is on. (time since 00:00:00 UTC of January 1st 1970)|
|Syntax||<DB> UNIXTIME <unixtime>|
|Example||BotUser: DB unixtime
DB: BotUser, -192 days, 12 mins, 93 secs
|Obs.||use command calc if you need to to convert/calculate the result|
|See also: Calculator|