Last active
August 9, 2018 15:55
-
-
Save jeluard/87b2fd97baee988fbf74c442be235fe3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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