ID: Rechne Bot mit in die Liste ein, aber schreibe Hinweis am Ende, dass Bots nicht miteinberechnet werden (da Bots auch von Bots ignoriert werden)
This commit is contained in:
parent
b183aa49b3
commit
ece039be15
@ -103,7 +103,7 @@ function id:action(msg)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
local result = id:get_member_count(self, msg, chat_id)
|
local result = id:get_member_count(self, msg, chat_id)
|
||||||
local member_count = result.result - 1 -- minus the bot
|
local member_count = result.result
|
||||||
if member_count == 1 then
|
if member_count == 1 then
|
||||||
member_count = 'ist *1 Mitglied'
|
member_count = 'ist *1 Mitglied'
|
||||||
else
|
else
|
||||||
@ -119,7 +119,7 @@ function id:action(msg)
|
|||||||
text = text..'*'..user.name..'* `['..user.id..']`\n'
|
text = text..'*'..user.name..'* `['..user.id..']`\n'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
utilities.send_reply(self, msg, text, true)
|
utilities.send_reply(self, msg, text..'_(Bots sind nicht gelistet)_', true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user