Allow server admins to delete tags, don't run ready functions more than needed
This commit is contained in:
parent
bf14371b52
commit
617cf01090
3 changed files with 21 additions and 17 deletions
|
@ -17,6 +17,8 @@ exports.manager;
|
|||
|
||||
exports.status = false;
|
||||
|
||||
exports.connected = false;
|
||||
|
||||
exports.checkStatus = async () => {
|
||||
const statuses = [];
|
||||
for (const node of nodes) {
|
||||
|
@ -38,6 +40,7 @@ exports.connect = async () => {
|
|||
});
|
||||
const { length } = await this.manager.connect();
|
||||
logger.log(`Successfully connected to ${length} Lavalink node(s).`);
|
||||
exports.connected = true;
|
||||
this.manager.on("error", (error, node) => {
|
||||
logger.error(`An error occurred on Lavalink node ${node}: ${error}`);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue