Bugfixes and updated readme.
This commit is contained in:
@@ -998,9 +998,7 @@ local commands = {
|
||||
end
|
||||
input = '*Admin Broadcast:*\n' .. input
|
||||
for k,v in pairs(database.administration.groups) do
|
||||
if tonumber(k) then
|
||||
sendMessage(k, input, true, nil, true)
|
||||
end
|
||||
sendMessage(k, input, true, nil, true)
|
||||
end
|
||||
end
|
||||
}
|
||||
|
@@ -12,6 +12,7 @@ local triggers = {
|
||||
local action = function(msg)
|
||||
|
||||
if database.blacklist[msg.from.id_str] then return end
|
||||
if database.blacklist[msg.chat.id_str] then return end
|
||||
if not msg.text:match('^/blacklist') then return true end
|
||||
if msg.from.id ~= config.admin then return end
|
||||
|
||||
@@ -21,6 +22,10 @@ local triggers = {
|
||||
return
|
||||
end
|
||||
|
||||
if tonumber(target.id) < 0 then
|
||||
target.name = 'Group'
|
||||
end
|
||||
|
||||
if database.blacklist[tostring(target.id)] then
|
||||
database.blacklist[tostring(target.id)] = nil
|
||||
sendReply(msg, target.name .. ' has been removed from the blacklist.')
|
||||
|
@@ -30,7 +30,7 @@ local command = 'hearthstone <query>'
|
||||
local doc = [[```
|
||||
/hearthstone <query>
|
||||
Returns Hearthstone card info.
|
||||
Alias: /hn
|
||||
Alias: /hs
|
||||
```]]
|
||||
|
||||
local triggers = {
|
||||
|
@@ -19,10 +19,6 @@ local action = function(msg)
|
||||
for k,v in pairs(target) do
|
||||
output = output .. '*' .. k .. ':* `' .. v .. '`\n'
|
||||
end
|
||||
output = output .. '\n'
|
||||
for k,v in pairs(msg.chat) do
|
||||
output = output .. '*' .. k .. ':* `' .. v .. '`\n'
|
||||
end
|
||||
sendMessage(msg.chat.id, output, true, nil, true)
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user