This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot/plugins/ping.lua

13 lines
236 B
Lua
Raw Normal View History

2014-11-04 16:09:08 +01:00
function run(msg, matches)
local receiver = get_receiver(msg)
print('receiver: '..receiver)
return "pong"
end
return {
description = "bot sends pong",
2014-11-04 22:06:59 +01:00
usage = "!ping",
patterns = {"^!ping$"},
2014-11-04 16:09:08 +01:00
run = run
}