Page MenuHomePhabricator (Chris)

donate.lua
No OneTemporary

Authored By
Unknown
Size
637 B
Referenced Files
None
Subscribers
None

donate.lua

--[[
Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local donate = {}
local mattata = require('mattata')
function donate:init()
donate.commands = mattata.commands(self.info.username):command('donate').table
donate.help = '/donate - Make an optional, monetary contribution to the mattata project.'
end
function donate.on_message(_, message, _, language)
local output = string.format(language['donate']['1'], mattata.escape_html(message.from.first_name))
return mattata.send_message(message.chat.id, output, 'html')
end
return donate

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 15, 3:32 PM (6 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
113456
Default Alt Text
donate.lua (637 B)

Event Timeline