aboutsummaryrefslogtreecommitdiff
path: root/bin/bot.ml
diff options
context:
space:
mode:
authorAdelyn Breelove <[email protected]>2019-01-17 09:03:52 -0700
committerAdelyn Breelove <[email protected]>2019-01-17 09:03:52 -0700
commitc22cea2e99dff9ff45057ef33553dac8adebf0c1 (patch)
treeb6f571ad2197e6614ad64392d65f774bb34eee4e /bin/bot.ml
parentmore mlis (diff)
downloaddisml-c22cea2e99dff9ff45057ef33553dac8adebf0c1.tar.xz
disml-c22cea2e99dff9ff45057ef33553dac8adebf0c1.zip
new event dispatching
Diffstat (limited to 'bin/bot.ml')
-rw-r--r--bin/bot.ml9
1 files changed, 2 insertions, 7 deletions
diff --git a/bin/bot.ml b/bin/bot.ml
index 25ccc1e..3608f85 100644
--- a/bin/bot.ml
+++ b/bin/bot.ml
@@ -8,13 +8,8 @@ let main () =
| None -> failwith "No token in env"
in
Client.start token
- >>> fun client ->
- Clock.every
- (Time.Span.create ~sec:60 ())
- (fun () ->
- print_endline "Setting status";
- Client.set_status ~status:(`String "Hello!") client
- >>> ignore)
+ >>> ignore
let _ =
+ Client.message_create := (fun msg -> print_endline msg.content);
Scheduler.go_main ~main ()