Update close.js

This commit is contained in:
ItzEmerald authored and GitHub committed 2020-01-30 21:02:35 +00:00
1 parent 186d688ec8
commit 77fe39774d
1 file changed
+4 -4
+4 -4
View File
@@ -37,7 +37,7 @@ exports.run = (bot, message, args) => {
message.channel.send(closeRequestEmbed).then( m => { message.channel.send(closeRequestEmbed).then( m => {
message.channel.awaitMessages( response => response.content.toLowerCase() === supportbot.Closure_Confirm_Word, { message.channel.awaitMessages( response => response.content.toLowerCase() === supportbot.Closure_Confirm_Word, {
max: 1, max: 1,
time: 20 * 1000, time: 20000,
errors: [ 'time' ], errors: [ 'time' ],
} ).then( collected => { } ).then( collected => {
@@ -50,7 +50,7 @@ exports.run = (bot, message, args) => {
let name = message.channel.name; let name = message.channel.name;
let ticketChannel = message.channel; let ticketChannel = message.channel;
message.channel.send(supportbot.Ticket_Closing) message.channel.send(`**${supportbot.Ticket_Closing}**`)
.then( () => { .then( () => {
const logEmbed = new Discord.RichEmbed() const logEmbed = new Discord.RichEmbed()
.setTitle(supportbot.Transcript_Title) .setTitle(supportbot.Transcript_Title)
@@ -80,8 +80,8 @@ exports.run = (bot, message, args) => {
// message.author.send( `A transcript has been generated for the ticket you closed.` ); // message.author.send( `A transcript has been generated for the ticket you closed.` );
// message.author.send( new Discord.Attachment( Buffer.from( txt ), `${name}.txt` ) ); // message.author.send( new Discord.Attachment( Buffer.from( txt ), `${name}.txt` ) );
logChannel.send( logEmbed ); logChannel.send(logEmbed)
logChannel.send( new Discord.Attachment( Buffer.from( txt ), `${name}.txt` ) ); logChannel.send( new Discord.Attachment( Buffer.from( txt ), `${name}.txt` ) );
message.channel.delete(); message.channel.delete();