mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 15:07:26 +02:00
20 lines
446 B
JavaScript
20 lines
446 B
JavaScript
module.exports = {
|
|
name: 'say',
|
|
aliases: ['dire'],
|
|
description: 'Fait dire quelque chose au bot',
|
|
emote: '💬',
|
|
utilisation: 'say <message>',
|
|
category: 'botcontrol',
|
|
async execute(message, args) {
|
|
if (args.length === 0) {
|
|
return message.reply('Veuillez spécifier un message.');
|
|
}
|
|
|
|
const text = args.join(' ');
|
|
try {
|
|
await message.delete();
|
|
} catch {
|
|
}
|
|
message.channel.send(text);
|
|
},
|
|
}; |