aboutsummaryrefslogtreecommitdiff
path: root/bin/bot.ml
diff options
context:
space:
mode:
authorAdelyn Breelove <[email protected]>2019-01-21 09:54:34 -0700
committerAdelyn Breelove <[email protected]>2019-01-21 09:54:34 -0700
commit7d254ed478a014afff83fa291e5568b3596dfce0 (patch)
tree4b1d0f39bd30f71efe7e4a3072880afc68df2989 /bin/bot.ml
parentfinish making model signatures (diff)
downloaddisml-7d254ed478a014afff83fa291e5568b3596dfce0.tar.xz
disml-7d254ed478a014afff83fa291e5568b3596dfce0.zip
start using Logs
Diffstat (limited to 'bin/bot.ml')
-rw-r--r--bin/bot.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/bot.ml b/bin/bot.ml
index c069084..1aae20b 100644
--- a/bin/bot.ml
+++ b/bin/bot.ml
@@ -52,6 +52,9 @@ let check_command (msg:Message.t) =
| _ -> ()
let main () =
+ Logs.set_reporter (Logs_fmt.reporter ());
+ Logs.set_level ~all:true (Some Logs.Debug);
+ Client.message_create := check_command;
let token = match Sys.getenv "DISCORD_TOKEN" with
| Some t -> t
| None -> failwith "No token in env"
@@ -60,5 +63,4 @@ let main () =
>>> ignore
let _ =
- Client.message_create := check_command;
Scheduler.go_main ~main ()