You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
455 B
JavaScript
20 lines
455 B
JavaScript
const MessageManager = require("../MessageManager")
|
|
const PagerDevice = require("./Device")
|
|
const Str = require('@supercharge/strings')
|
|
|
|
class GenericPager extends PagerDevice {
|
|
constructor () {
|
|
super()
|
|
this.duplex = false
|
|
this.name = "generic"
|
|
}
|
|
RandID() {
|
|
return `G${ Str.random(8) }`
|
|
}
|
|
async formatTX(msg) {
|
|
msg.id = this.RandID()
|
|
await MessageManager.BindMsg(msg)
|
|
// return msg
|
|
}
|
|
}
|
|
module.exports = GenericPager |