Files
selfbot-discord/commands/automatisation/setautovoc.ts
T
Tutur33 e8e667a959 update
2024-03-10 15:40:34 +01:00

24 lines
678 B
TypeScript

import { Message, Client } from 'discord.js';
import db from '../../fonctions/instanceDB';
require('dotenv').config();
const joinVC = require('../../fonctions/joinVC');
module.exports = {
aliases: ['autovocset', 'autovoc'],
description: 'Avoir la latence du bot.',
emote: '⏱️',
utilisation: '<vocal>',
async execute(message: Message, args: string[], client: Client) {
const voc = args[0] || 'None';
db.run('UPDATE config SET value = ? WHERE name = "autovoc"', [voc], (err: any) => {
if (err) {
console.error(err.message);
}
});
joinVC(client, voc);
message.edit(`Le salon vocal par défaut est maintenant ${voc}`);
}
};