aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAdelyn Breelove <[email protected]>2019-01-21 13:56:21 -0700
committerAdelyn Breelove <[email protected]>2019-01-21 13:56:21 -0700
commit40098d46475cda44e2a68064552504e52fdb5b1d (patch)
treee342a35b74376413814de41e120ff2a55ea9cc3b /bin
parentAdd status change command example (diff)
downloaddisml-40098d46475cda44e2a68064552504e52fdb5b1d.tar.xz
disml-40098d46475cda44e2a68064552504e52fdb5b1d.zip
improve the status example
Diffstat (limited to 'bin')
-rw-r--r--bin/bot.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/bot.ml b/bin/bot.ml
index 0acc0a1..a7a689c 100644
--- a/bin/bot.ml
+++ b/bin/bot.ml
@@ -52,10 +52,11 @@ let check_command (msg:Message.t) =
) in
Message.reply_with ~embed msg >>> ignore
| "!status" ->
- let status = List.fold ~init:"" ~f:(^) rest in
+ let status = List.fold ~init:"" ~f:(fun a v -> a ^ " " ^ v) rest in
Ivar.read client >>> fun client ->
Client.set_status ~status:(`String status) client
- >>> ignore
+ >>> fun _ ->
+ Message.reply msg "Updated status" >>> ignore
| _ -> ()
let setup_logger () =