dispatcher/types/devices/GenericTetra.js
2025-03-23 22:37:20 +01:00

20 lines
No EOL
464 B
JavaScript

const MessageManager = require("../MessageManager")
const PagerDevice = require("./Device")
const Str = require('@supercharge/strings')
class GenericTetra extends PagerDevice {
constructor () {
super()
this.duplex = true
this.name = "tetra-generic"
}
RandID() {
return `TETRA${ Str.random(8) }`
}
async formatTX(msg) {
msg.id = this.RandID()
await MessageManager.BindMsg(msg)
// return msg
}
}
module.exports = GenericTetra