Skip to content

Commit

Permalink
✨ feat primary color
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDams committed Aug 21, 2021
1 parent fa4a5d1 commit 710e75e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions commands/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module.exports = {
type: 'system',
execute(message, args) {
const helpCard = new Discord.MessageEmbed()
.setColor(color.primary)
.setTitle('Commands')
.setDescription(`\`${prefix}help {command}\` for more info on a specific command`)
.setFooter(`${name} Help`)
Expand Down
3 changes: 2 additions & 1 deletion commands/invite.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { name, invite } = require('../config.json')
const { name, invite, color } = require('../config.json')
const Discord = require('discord.js')

module.exports = {
Expand All @@ -12,6 +12,7 @@ module.exports = {
.attachFiles([
new Discord.MessageAttachment('./images/logo.png', 'logo.png')
])
.setColor(color.primary)
.setAuthor(`${name}`, 'attachment://logo.png')
.setDescription(`Hey <@${message.author.id}> you can invite me by clicking on the following link\n${invite}`)
.setFooter(`${name} Invite`))
Expand Down
1 change: 1 addition & 0 deletions commands/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const sendCardWithInfos = async (message, steamParam) => {
await User.exists(discordId) ? await User.update(discordId, steamId) : User.create(discordId, steamId)

message.channel.send(new Discord.MessageEmbed()
.setColor(color.primary)
.setDescription(`Your account has been linked to ${playerDatas.nickname}`))

} catch (error) {
Expand Down
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"prefix": ".ff",
"invite": "https://discord.com/oauth2/authorize?client_id=838088031222235197&permissions=0&redirect_uri=https%3A%2F%2Fdiscordapp.com%2Fapi%2Foauth2%2Fauthorize&scope=bot",
"color": {
"primary": "#14578c",
"levels": [
"#eeeeee",
"#1ce300",
Expand Down

0 comments on commit 710e75e

Please sign in to comment.