@xud6/cq-websocket
Version:
A Node SDK for developing QQ chatbots based on WebSocket, which is depending on CoolQ and CQHTTP API plugin.
17 lines (13 loc) • 366 B
JavaScript
const CQTag = require('../CQTag')
module.exports = class CQAnonymous extends CQTag {
constructor (shouldIgnoreIfFailed) {
super('anonymous')
this.modifier.ignore = Boolean(shouldIgnoreIfFailed)
}
get ignore () {
return this.modifier.ignore
}
set ignore (shouldIgnoreIfFailed) {
this.modifier.ignore = Boolean(shouldIgnoreIfFailed)
}
}