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

const MessageManager = require("../MessageManager")
4 years ago
const PagerDevice = require("./Device")
const Str = require('@supercharge/strings')
4 years ago
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
4 years ago
}
}
module.exports = GenericPager