From 2b0feae736f065afc1af016d4e5fae526ed5c747 Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Mon, 12 Apr 2021 17:45:45 +0200 Subject: [PATCH] Add user ID to /id command --- konata.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/konata.sh b/konata.sh index 4566014..61dce77 100755 --- a/konata.sh +++ b/konata.sh @@ -141,7 +141,9 @@ cv(){ } id(){ - sendmsg "Chat ID: \`$chat\`" + uid=$(jq -r '.message.user.id' <<< $input) + sendmsg "*User ID:* \`$uid\` + *Chat ID:* \`$chat\`" } ud(){