add roll command
This commit is contained in:
parent
85e13a7f0b
commit
fc26fd5e26
@ -11,7 +11,8 @@
|
||||
{"file": "20180716-1.sql", "version": 9},
|
||||
{"file": "20180718-1.sql", "version": 10},
|
||||
{"file": "20180719-1.sql", "version": 11},
|
||||
{"file": "20180721-1.sql", "version": 12}
|
||||
{"file": "20180721-1.sql", "version": 12},
|
||||
{"file": "20180807-1.sql", "version": 13}
|
||||
],
|
||||
"test": []
|
||||
}
|
@ -475,6 +475,11 @@ const hello = async () => {
|
||||
return {reply: 'Hello World'}
|
||||
}
|
||||
|
||||
const roll = async () => {
|
||||
let r = Math.floor(Math.random() * 10000)
|
||||
return {reply: r}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
addgroup: run.bind(null, addGroup),
|
||||
addpage: run.bind(null, addPage),
|
||||
@ -483,5 +488,6 @@ module.exports = {
|
||||
deltwitch: run.bind(null, delTwitch),
|
||||
addyoutube: run.bind(null, addYoutube),
|
||||
hello: run.bind(null, hello),
|
||||
image: run.bind(null, image)
|
||||
image: run.bind(null, image),
|
||||
roll: run.bind(null, roll)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user