Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F632884
donate.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
637 B
Referenced Files
None
Subscribers
None
donate.lua
View Options
--[[
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 3:32 PM (7 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
113456
Default Alt Text
donate.lua (637 B)
Attached To
Mode
R69 mattata
Attached
Detach File
Event Timeline