Skip to content

Instantly share code, notes, and snippets.

@jeluard
Last active August 9, 2018 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jeluard/87b2fd97baee988fbf74c442be235fe3 to your computer and use it in GitHub Desktop.
Save jeluard/87b2fd97baee988fbf74c442be235fe3 to your computer and use it in GitHub Desktop.
{meta {:name "Dynamic command Extension"
:description "Just a simple dynamic test command"
:documentation ""}
views/send.preview
(let [{from :from} @properties]
[view {}
[text {}
from]])
views/send.short-preview
[view {}
[text {}
"Short Preview"]]
hooks/status.chat.commands.dynamic-command
{:description "Dynamic command"
:scope #{:personal-chats :public-chats}
:preview @views/send.preview
:short-preview @views/send.short-preview
:parameters [{:id :name
:type :text
:placeholder "name"}]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment