Skip to content

Instantly share code, notes, and snippets.

@TiagoDanin
Created October 3, 2016 15:18
Show Gist options
  • Save TiagoDanin/d88299795fb755b33aef3836b1570c29 to your computer and use it in GitHub Desktop.
Save TiagoDanin/d88299795fb755b33aef3836b1570c29 to your computer and use it in GitHub Desktop.
Testing lanes in GroupButler
local triggers = {
config.cmd..'test (.*)'
}
local function lanes_test(check)
local n = 0
while check do
n = n + 1
print(check)
end
return true
end
local function onmessage(msg)
return true
end
local action = function(msg, blocks)
api.sendMessage(msg.chat.id, "OK...", true)
print(_(URL.escape('&*##'))) -- test libs
lanes_test(blocks[1]) -- loop
end
return {
action = action,
triggers = triggers,
onmessage = false,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment