Update /ud command
This commit is contained in:
@@ -81,8 +81,10 @@ ud(){
|
|||||||
then
|
then
|
||||||
def=$(jq -r '.list[0].definition' <<< $res | sed "s/[][]//g")
|
def=$(jq -r '.list[0].definition' <<< $res | sed "s/[][]//g")
|
||||||
sam=$(jq -r '.list[0].example' <<< $res | sed "s/[][]//g")
|
sam=$(jq -r '.list[0].example' <<< $res | sed "s/[][]//g")
|
||||||
sendmsg "Definition for $args: $def
|
sendmsg "*Definition for __${args}__:*
|
||||||
\"$sam\""
|
$def
|
||||||
|
*Example:*
|
||||||
|
$sam"
|
||||||
else
|
else
|
||||||
sendmsg "No definition found for $args."
|
sendmsg "No definition found for $args."
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user