BaseDirective.js 445 Bytes
Newer Older
xuchaozou's avatar
xuchaozou committed
1 2 3 4 5
class BaseDirective {
    constructor (options = {}) {
        this.options = options
        this.text = this.options.text
        this.directives = options.directives 
6 7
        this.params = options.params || {}
        this.data = null
8
        this.matchResult = null
xuchaozou's avatar
xuchaozou committed
9 10 11 12
    }
    match () {

    }
13 14 15
    async excute ({
        sendMsg = function () {}
    }) {
xuchaozou's avatar
xuchaozou committed
16 17
        
    }
xuchaozou's avatar
xuchaozou committed
18 19 20 21

    closeResponse () {
        
    }
xuchaozou's avatar
xuchaozou committed
22 23 24
}

export default BaseDirective