Skip to content

Commit

Permalink
embed coolor
Browse files Browse the repository at this point in the history
  • Loading branch information
Pomdre committed May 8, 2021
1 parent 8e2c186 commit 737e3cf
Showing 1 changed file with 13 additions and 36 deletions.
49 changes: 13 additions & 36 deletions nrk_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,42 +128,19 @@ function info() {
// Help
client.on('message', msg => {
if (msg.content.toLowerCase() === '!nrk hjelp') {
msg.reply(
{
"embed": {
"title": "NRK Radio Hjelp",
"description": "**Kommandoer for boten og annen info**",
"color": 16777215,
"footer": {
"text": `Laget av @Pomdre#0449 | Er med i ${client.guilds.cache.size} server(e)!`
},
"fields": [
{
"name": "Velg en kanal:",
"value": "```!nrk lytt <kanal>```"
},
{
"name": "Liste over kanaler:",
"value": "```!nrk kanaler```",
"inline": true
},
{
"name": "Kast radioen ut av vinduet:",
"value": "```!nrk forlat```",
"inline": true
},
{
"name": "Inviter meg:",
"value": "https://discordapp.com/oauth2/authorize?client_id=638025532688171027&permissions=66186560&scope=bot"
},
{
"name": "Kildekoden min:",
"value": "https://github.com/Pomdre/NRK-radio-discord-bot"
}
]
}
}
);
const help = new Discord.MessageEmbed()
.setColor(255, 255, 255)
.setTitle('NRK Radio Hjelp')
.setDescription('**Kommandoer for boten og annen info**')
.addFields(
{ name: 'Velg en kanal:', value: '```!nrk lytt <kanal>```' },
{ name: 'Liste over kanaler:', value: '```!nrk kanaler```', inline: true },
{ name: 'Kast radioen ut av vinduet:', value: '```!nrk forlat```', inline: true },
{ name: 'Inviter meg:', value: 'https://discordapp.com/oauth2/authorize?client_id=638025532688171027&permissions=66186560&scope=bot' },
{ name: 'Kildekoden min:', value: 'https://github.com/Pomdre/NRK-radio-discord-bot' },
)
.setFooter(`Laget av @Pomdre#0449 | Er med i ${client.guilds.cache.size} server(e)!`);
msg.reply(help)
}
});

Expand Down

0 comments on commit 737e3cf

Please sign in to comment.