This repository has been archived on 2026-06-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
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

18 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