mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 09:23:07 +02:00
update
This commit is contained in:
parent
09b4b0a298
commit
6c134a6bc5
@ -8,9 +8,9 @@ module.exports = {
|
||||
if(config.useEmbeds) {
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setAuthor(`${client.user.username} / Ticket Log`, client.user.avatarURL)
|
||||
.setColor("#2ECC71")
|
||||
.setColor(config.colour)
|
||||
.setDescription(":white_check_mark: **Started succesfully**")
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} / Ticket Bot : DiscordTickets by Eartharoid`);
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);
|
||||
message.channel.send({embed})
|
||||
} else {
|
||||
message.channel.send(`**Prefix =** \`${config.prefix}\`\n**Bot Version =** \`${version}\``)
|
||||
|
@ -15,7 +15,7 @@ module.exports = {
|
||||
.setColour
|
||||
.addField("Username", message.author.tag, true)
|
||||
.addField("Channel", ticketChannel, true)
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} / Ticket Bot : DiscordTickets by Eartharoid`);
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);
|
||||
client.channels.get(config.logChannel).send({embed})
|
||||
} else {
|
||||
client.channels.get(config.logChannel).send(`New ticket created by **${message.author.tag} (${message.author.id})**`);
|
||||
|
8
index.js
8
index.js
@ -88,7 +88,7 @@ client.once('ready', () => { // after bot has logged in
|
||||
.setAuthor(`${client.user.username} / Ticket Log`, client.user.avatarURL)
|
||||
.setColor("#2ECC71")
|
||||
.setDescription(":white_check_mark: **Started succesfully**")
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} / Ticket Bot : DiscordTickets by Eartharoid`);
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);
|
||||
client.channels.get(config.logChannel).send({embed})
|
||||
} else {
|
||||
client.channels.get(config.logChannel).send(":white_check_mark: **Started succesfully**")
|
||||
@ -100,7 +100,7 @@ client.once('ready', () => { // after bot has logged in
|
||||
.setAuthor(`${client.user.username} / Ticket Log`, client.user.avatarURL)
|
||||
.setColor("#2ECC71")
|
||||
.setDescription(":white_check_mark: **Required permissions have been granted**")
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} / Ticket Bot : DiscordTickets by Eartharoid`);
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);
|
||||
client.channels.get(config.logChannel).send({embed})
|
||||
} else {
|
||||
client.channels.get(config.logChannel).send(":white_check_mark: **Started succesfully**")
|
||||
@ -113,7 +113,7 @@ client.once('ready', () => { // after bot has logged in
|
||||
.setAuthor(`${client.user.username} / Ticket Log`, client.user.avatarURL)
|
||||
.setColor("#E74C3C")
|
||||
.setDescription(":x: **Required permissions have not been granted**\nPlease give the bot the `ADMINISTRATOR` permission")
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} / Ticket Bot : DiscordTickets by Eartharoid`);
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);
|
||||
client.channels.get(config.logChannel).send({embed})
|
||||
} else {
|
||||
client.channels.get(config.logChannel).send(":white_check_mark: **Started succesfully**")
|
||||
@ -134,7 +134,7 @@ client.on('message', message => {
|
||||
.setTitle("DM Logger")
|
||||
.addField("Username", message.author.tag, true)
|
||||
.addField("Message", message.content, true)
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} / Ticket Bot : DiscordTickets by Eartharoid`);
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);
|
||||
client.channels.get(config.logChannel).send({embed})
|
||||
} else {
|
||||
client.channels.get(config.logChannel).send(`DM received from **${message.author.tag} (${message.author.id})** : \n\n\`\`\`${message.content}\`\`\``);
|
||||
|
Loading…
Reference in New Issue
Block a user