mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-03 16:24:28 +00:00
some fixes and updates
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
const {
|
||||
getLyrics
|
||||
} = require("genius-lyrics-api");
|
||||
const { getLyrics } = require("genius-lyrics-api");
|
||||
|
||||
module.exports = {
|
||||
name: "lyrics",
|
||||
@ -26,9 +24,8 @@ module.exports = {
|
||||
if (lyrics === null)
|
||||
return msg.channel.send(client.messages.noResultsLyrics);
|
||||
for (let i = 0; i < lyrics.length; i += 2000) {
|
||||
let toi = ""
|
||||
toi =
|
||||
lyrics.substring(i, Math.min(lyrics.length, i + 2000));
|
||||
let toi = "";
|
||||
toi = lyrics.substring(i, Math.min(lyrics.length, i + 2000));
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setTitle(client.messages.lyricsTitle)
|
||||
.setDescription(toi)
|
||||
@ -37,4 +34,4 @@ module.exports = {
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
};
|
||||
|
@ -7,6 +7,9 @@ module.exports = {
|
||||
permission: 'dev',
|
||||
category: 'util',
|
||||
async execute(msg, args, client, Discord, command) {
|
||||
lient.funcs.saveDB(client);
|
||||
msg.channel.send(client.messages.dbSaved);
|
||||
msg.channel.send(client.messages.restart);
|
||||
client.shard.respawnAll(client.config.shardDelay, client.config.respawnDelay, client.config.spawnTimeout);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user