diff options
| author | Adelyn Breelove <[email protected]> | 2019-01-21 13:56:21 -0700 |
|---|---|---|
| committer | Adelyn Breelove <[email protected]> | 2019-01-21 13:56:21 -0700 |
| commit | 40098d46475cda44e2a68064552504e52fdb5b1d (patch) | |
| tree | e342a35b74376413814de41e120ff2a55ea9cc3b /bin | |
| parent | Add status change command example (diff) | |
| download | disml-40098d46475cda44e2a68064552504e52fdb5b1d.tar.xz disml-40098d46475cda44e2a68064552504e52fdb5b1d.zip | |
improve the status example
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/bot.ml | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 () = |