mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-13 00:10:21 +00:00
Update Client.ts
This commit is contained in:
parent
fee833d231
commit
26cdef50b2
@ -82,7 +82,9 @@ class RadioClient extends Client {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.on("error", error => {
|
this.on("error", error => {
|
||||||
|
this.funcs.logger("Discord Client / Error");
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
console.log('');
|
||||||
});
|
});
|
||||||
|
|
||||||
process.on('SIGINT', () => {
|
process.on('SIGINT', () => {
|
||||||
@ -102,13 +104,7 @@ class RadioClient extends Client {
|
|||||||
});
|
});
|
||||||
|
|
||||||
process.on('warning', (warning) => {
|
process.on('warning', (warning) => {
|
||||||
if(warning.name == "ExperimentalWarning" && warning.message.startsWith("stream/web")) return;
|
require(`${events}warning`).execute(this, warning);
|
||||||
|
|
||||||
this.funcs.logger("Warning");
|
|
||||||
console.warn(warning.name);
|
|
||||||
console.warn(warning.message);
|
|
||||||
console.warn(warning.stack);
|
|
||||||
console.log('');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.login(this.config.token).catch(err => console.log("Failed to login: " + err));
|
this.login(this.config.token).catch(err => console.log("Failed to login: " + err));
|
||||||
|
Loading…
Reference in New Issue
Block a user