mirror of
https://github.com/arthur-pbty/selfbot-discord.git
synced 2026-06-12 00:04:42 +02:00
20 lines
623 B
TypeScript
20 lines
623 B
TypeScript
import { Message, Client } from 'discord.js';
|
|
import db from '../../fonctions/instanceDB';
|
|
require('dotenv').config();
|
|
|
|
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.`);
|
|
}
|
|
}; |