add roll command

This commit is contained in:
Jay 2018-08-07 13:42:55 +08:00
parent 85e13a7f0b
commit fc26fd5e26
2 changed files with 9 additions and 2 deletions

View File

@ -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": []
}

View File

@ -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)
}