diff options
author | jacob janzen <53062115+JacobJanzen@users.noreply.github.com> | 2024-12-11 20:07:47 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 20:07:47 -0600 |
commit | 9c4e538aa0b41906b97b7ecc3317c23ba26b3246 (patch) | |
tree | 53b846cbc149ebd9f435b1f1547ed752b1770798 /command_impls.js | |
parent | 7391eefb59ba4ea8d72c09a8dd577678c7e78aa8 (diff) |
Add help message
Diffstat (limited to 'command_impls.js')
-rw-r--r-- | command_impls.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/command_impls.js b/command_impls.js index 8e2cf45..3079e83 100644 --- a/command_impls.js +++ b/command_impls.js @@ -35,3 +35,14 @@ export function unschedule_message(state, id) { export function pet(state) { return send(state, "[purring noises]"); } + +export function help(state) { + return send( + state, + `Hi, I'm sily-bot! +Here are the available commands and their descriptions: +- \`/pet\` You can pet sily-bot. +- \`/schedule-message <message> <cron>\` Schedule a message to be send later. Works like Linux cron jobs in the format second minute hour day month weekday. Put the number (or name of month or weekday) in each spot. If you want it to run every second, minute, etc. instead of once when it reaches the provided number, use a * instead of a number. For instance, to run a job every minute on January 4th, you might use 0 * * 4 January *. The bot replies with a UUID that can be used to cancel the cron job later. +- \`/unschedule-message <id>\` Stop sending a message with the given id.`, + ); +} |