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