mirror of
https://github.com/arthur-pbty/selfbot-discord.git
synced 2026-06-12 23:59:27 +02:00
21 lines
673 B
TypeScript
21 lines
673 B
TypeScript
import { Message, Client } from 'discord.js';
|
|
import db from '../../fonctions/instanceDB';
|
|
require('dotenv').config();
|
|
const joinVC = require('../../fonctions/joinVC');
|
|
|
|
module.exports = {
|
|
aliases: ['autovocadd'],
|
|
description: 'Avoir la latence du bot.',
|
|
emote: '⏱️',
|
|
utilisation: '<vocal>',
|
|
|
|
async execute(message: Message, args: string[], client: Client) {
|
|
const voc = args[0] || 'None';
|
|
db.run('INSERT INTO autovoc (vocalID) VALUES (?)', [voc], (err: any) => {
|
|
if (err) {
|
|
console.error(err.message);
|
|
}
|
|
});
|
|
message.channel.send(`Le salon vocal ${voc} a été ajouté à la liste des salons vocaux automatiques.`);
|
|
}
|
|
}; |