mirror of
https://github.com/arthur-pbty/selfbot-discord.git
synced 2026-06-10 02:44:34 +02:00
21 lines
575 B
TypeScript
21 lines
575 B
TypeScript
import { Message, Client } from 'discord.js';
|
||
import db from '../../fonctions/instanceDB';
|
||
require('dotenv').config();
|
||
|
||
module.exports = {
|
||
aliases: [],
|
||
description: 'Change le préfixe du bot.',
|
||
emote: '⏱️',
|
||
utilisation: '',
|
||
|
||
async execute(message: Message, args: string[], client: Client) {
|
||
const prefix = args[0] || '!!';
|
||
db.run('UPDATE config SET value = ? WHERE name = "prefix"', [prefix], (err: any) => {
|
||
if (err) {
|
||
console.error(err.message);
|
||
}
|
||
});
|
||
|
||
message.edit(`Le préfixe a été changé pour \`${prefix}\``);
|
||
}
|
||
}; |