Skip to content

Commit

Permalink
q
Browse files Browse the repository at this point in the history
  • Loading branch information
TisMeCastle committed Oct 30, 2023
1 parent 7ec2a8b commit 6c40964
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
27 changes: 17 additions & 10 deletions commands/Tourney/ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,24 @@ module.exports = {
}, 500)
}

const broswer = await puppeteer.launch({ headless: true, args: ['--no-sandbox', '--disable-setuid-sandbox'], ignoreDefaultArgs: ['--disable-extensions'] })

const outputFilePath = await convertFile(inputFilePath, broswer);
const outputFilePath = await convertFile(inputFilePath, {
headless: "new",
puppeteer: {
headless: "new",
args: ['--no-sandbox', '--disable-setuid-sandbox'],
ignoreDefaultArgs: ['--disable-extensions'],
},
headless: "new"
});

const buttonData = new MessageActionRow()
.addComponents(
new MessageButton()
.setCustomId('sendRLAd')
.setLabel('Send Ad')
.setStyle(3)
.setDisabled(true)
);
const buttonData = new MessageActionRow()
.addComponents(
new MessageButton()
.setCustomId('adimage')
.setLabel('Send Tweet')
.setStyle(3)
);

interaction.editReply({
content: `
Expand All @@ -182,6 +188,7 @@ const broswer = await puppeteer.launch({ headless: true, args: ['--no-sandbox',
}],
})


buttonData.components[0].setDisabled(false);
try {
setTimeout(function () {
Expand Down
1 change: 0 additions & 1 deletion commands/Tourney/postEventTweet.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ module.exports = {

const inputFilePath = './commands/Tourney/winnerres.svg'


if (fs.existsSync('./commands/Tourney/winnerres.svg')) {
console.log('not lit')
} else {
Expand Down

0 comments on commit 6c40964

Please sign in to comment.