23 lines
561 B
Lua
23 lines
561 B
Lua
|
local stick = {
|
||
|
{
|
||
|
'AgADwAADcpO1DQ',
|
||
|
'редебало',
|
||
|
'CAACAgIAAx0CUY2umQACFItiHHUg6w_MPu6Vs8k76cwn4OIHNQACwAADcpO1DVbNTDlmHOWMIwQ'
|
||
|
}
|
||
|
}
|
||
|
return function(C, api, msg)
|
||
|
if msg.from.is_premium then
|
||
|
api:reply(msg, 'Премак юзер, надо бы забанить. TODO БЛЯТЬ')
|
||
|
end
|
||
|
if msg.sticker then
|
||
|
for k, v in pairs(stick) do
|
||
|
if msg.sticker.file_unique_id == v[1] then
|
||
|
if math.random() <= 0.5
|
||
|
then api:reply(msg, v[2])
|
||
|
else api:sendSticker(msg, v[3])
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|