Updated restoreradio.js

This commit is contained in:
Christer Warén 2021-09-03 04:06:46 +03:00
parent b0270e651e
commit 90f47825b6

View File

@ -9,7 +9,7 @@ const {
module.exports = { module.exports = {
async execute(client, guilds) { async execute(client, guilds) {
if(!client.stations) return; if(!client.stations) return;
guilds.forEach(async guild => { guilds.forEach(async guild => {
let state = client.funcs.loadState(client, guild); let state = client.funcs.loadState(client, guild);
if(!state) return; if(!state) return;
@ -96,7 +96,7 @@ async function play(interaction, guild, client, url, Discord) {
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
.setTitle(client.user.username) .setTitle(client.user.username)
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["play"].replace(/[^0-9]+/g, '')) .setThumbnail((radio.station.logo || "https://cdn.discordapp.com/emojis/" + client.messageEmojis["play"].replace(/[^0-9]+/g, '')))
.setColor(client.config.embedColor) .setColor(client.config.embedColor)
.addField(client.messages.nowplayingTitle, message.nowplayingDescription, true) .addField(client.messages.nowplayingTitle, message.nowplayingDescription, true)
.setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png')