Reworking bot code. Again... #7
@ -5,7 +5,7 @@ import b4a from "b4a";
|
|||||||
class Client extends EventEmitter {
|
class Client extends EventEmitter {
|
||||||
constructor(botName) {
|
constructor(botName) {
|
||||||
super();
|
super();
|
||||||
if(!botName) return console.error("BotName is not defined!");
|
if(!botName) return console.error("Bot Name is not defined!");
|
||||||
this.botName = botName;
|
this.botName = botName;
|
||||||
this.swarm = new Hyperswarm();
|
this.swarm = new Hyperswarm();
|
||||||
this.setupSwarm();
|
this.setupSwarm();
|
||||||
|
Loading…
Reference in New Issue
Block a user