chipmunkbot3/util/command/text_message.js
Chipmunk 5f3560910b Refactor the chat system
not sure if it's better or worse now. also, i have tried to optimize color codes, but this optimization seems unreliable (i might fix or remove it in the future)
2024-03-17 23:52:58 -04:00

17 lines
281 B
JavaScript

const plainStringify = require('../chat/stringify/plain')
class TextMessage {
constructor (text) {
this.text = text
}
getString () {
return plainStringify(this.text, { lang: {} })
}
toString () {
return this.getString()
}
}
module.exports = TextMessage