diff options
| author | Adelyn Breelove <[email protected]> | 2019-01-17 09:03:52 -0700 |
|---|---|---|
| committer | Adelyn Breelove <[email protected]> | 2019-01-17 09:03:52 -0700 |
| commit | c22cea2e99dff9ff45057ef33553dac8adebf0c1 (patch) | |
| tree | b6f571ad2197e6614ad64392d65f774bb34eee4e /bin/bot.ml | |
| parent | more mlis (diff) | |
| download | disml-c22cea2e99dff9ff45057ef33553dac8adebf0c1.tar.xz disml-c22cea2e99dff9ff45057ef33553dac8adebf0c1.zip | |
new event dispatching
Diffstat (limited to 'bin/bot.ml')
| -rw-r--r-- | bin/bot.ml | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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 () |