botcontrol add

This commit is contained in:
VALOU3336
2024-02-14 08:39:07 +01:00
parent 9ecb5d56a1
commit 6b063db08f
5 changed files with 127 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
const { ActivityType } = require("discord.js");
module.exports = {
name: 'stream',
description: 'Mettre le bot en stream',
async execute(message, args, client) {
const streamText = args.join(' ') || 'Streaming';
const streamURL = 'https://www.twitch.tv/valou336_yt';
client.user.setPresence({
activities: [{
name: streamText,
type: ActivityType.Streaming,
url: streamURL
}]
});
message.channel.send(`Le bot est maintenant en streaming : ${streamText}`);
},
};