The official leaked source code of the Dyno Discord Bot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

13 lines
277 B

/* eslint-disable no-unused-vars */
const jayson = require('jayson');
class Server {
init(host, port, methods) {
this.host = host;
this.port = port;
this.server = jayson.server(methods);
this.server.http().listen(this.port, this.host);
}
}
module.exports = Server;