mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 02:20:18 +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.funcs.logger("Discord Client / Error");
|
||||
console.error(error);
|
||||
console.log('');
|
||||
});
|
||||
|
||||
process.on('SIGINT', () => {
|
||||
@ -102,13 +104,7 @@ class RadioClient extends Client {
|
||||
});
|
||||
|
||||
process.on('warning', (warning) => {
|
||||
if(warning.name == "ExperimentalWarning" && warning.message.startsWith("stream/web")) return;
|
||||
|
||||
this.funcs.logger("Warning");
|
||||
console.warn(warning.name);
|
||||
console.warn(warning.message);
|
||||
console.warn(warning.stack);
|
||||
console.log('');
|
||||
require(`${events}warning`).execute(this, warning);
|
||||
});
|
||||
|
||||
this.login(this.config.token).catch(err => console.log("Failed to login: " + err));
|
||||
|
Loading…
Reference in New Issue
Block a user