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