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-2/miku/plugins/me.lua

20 lines
387 B
Lua
Raw Normal View History

local me = {}
function me:init(config)
me.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('me', true).table
me.doc = '\n*/me* _<Text>_'
end
me.command = 'me'
function me:action(msg, config)
local input = utilities.input_from_msg(msg)
if not input then
return
end
2016-08-24 17:18:17 +02:00
utilities.send_message(msg.chat.id, msg.from.first_name..' '..input)
end
return me