eslint fix

This commit is contained in:
Supositware 2024-07-11 07:19:25 +02:00
parent 6ce2faf21b
commit 6983ea58b7
5 changed files with 37 additions and 37 deletions

View file

@ -33,7 +33,7 @@ export default {
const body = { type:command, uid: userid, reason: reason };
Blacklists.create(body);
if (command === 'guild') {
let guildid = userid;
const guildid = userid;
await client.guilds.fetch(guildid);
const guild = client.guilds.resolve(guildid).name;

View file

@ -12,7 +12,7 @@ export default {
const client = interaction.client;
if (interaction.type !== InteractionType.ApplicationCommand) return;
const globalBlacklist = await db.Blacklists.findOne({ where: { type:'global', uid:interaction.user.id } })
const globalBlacklist = await db.Blacklists.findOne({ where: { type:'global', uid:interaction.user.id } });
const commandBlacklist = await db.Blacklists.findOne({ where: { type:interaction.commandName, uid:interaction.user.id } });
if (interaction.guild) {
@ -38,10 +38,10 @@ export default {
if (!command) return;
const isOptOut = await db.optout.findOne({ where: { userID: interaction.user.id } });
let isOptOut = await db.optout.findOne({ where: { userID: interaction.user.id } });
if (commandName === 'optout') {
isOptOut = true
isOptOut = true;
}
const timestamp = new Date();

View file

@ -161,7 +161,7 @@ async function autoCrop(input, output) {
if (element.tags) {
const cropdetect = element.tags;
await ffmpeg(['-i', input, '-vf', `crop=${cropdetect['lavfi.cropdetect.w']}:${cropdetect['lavfi.cropdetect.h']}:${cropdetect['lavfi.cropdetect.x']}:${cropdetect['lavfi.cropdetect.y']}`, '-vcodec', 'libx264', '-acodec', 'aac', output])
await ffmpeg(['-i', input, '-vf', `crop=${cropdetect['lavfi.cropdetect.w']}:${cropdetect['lavfi.cropdetect.h']}:${cropdetect['lavfi.cropdetect.x']}:${cropdetect['lavfi.cropdetect.y']}`, '-vcodec', 'libx264', '-acodec', 'aac', output]);
break;
}
}