aboutsummaryrefslogtreecommitdiff
path: root/bin/bot.ml
diff options
context:
space:
mode:
authorAdelyn Breedlove <[email protected]>2019-01-20 21:10:03 -0700
committerAdelyn Breedlove <[email protected]>2019-01-20 21:10:03 -0700
commit8cc616e0878d9209c383b15863998ce975da4425 (patch)
tree08389f16a387dedda52e0ab0da5229ae522d5729 /bin/bot.ml
parentmore updates (diff)
downloaddisml-8cc616e0878d9209c383b15863998ce975da4425.tar.xz
disml-8cc616e0878d9209c383b15863998ce975da4425.zip
Add embed builders
Diffstat (limited to 'bin/bot.ml')
-rw-r--r--bin/bot.ml7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/bot.ml b/bin/bot.ml
index 05d836d..d0a8218 100644
--- a/bin/bot.ml
+++ b/bin/bot.ml
@@ -30,7 +30,12 @@ let check_command (msg:Message.t) =
|> Int.to_string in
Message.reply msg list >>> ignore
| "!embed" ->
- let embed = { Embed.default with description = Some "Hello World!" } in
+ let embed = Embed.(default
+ |> title "Foo"
+ |> description "Bar"
+ |> colour 0xff
+ |> field { name = "field"; value = "test"; inline = true; }
+ ) in
Message.reply_with ~embed msg >>> ignore
| _ -> ()