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
+7 -1
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)
}