Bugfixes and updated readme.

This commit is contained in:
topkecleon
2016-03-26 06:12:01 -04:00
parent 495cc8d0c1
commit 9377107508
5 changed files with 28 additions and 28 deletions

View File

@@ -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
}

View File

@@ -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.')

View File

@@ -30,7 +30,7 @@ local command = 'hearthstone <query>'
local doc = [[```
/hearthstone <query>
Returns Hearthstone card info.
Alias: /hn
Alias: /hs
```]]
local triggers = {

View File

@@ -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