Files
gestion/commands/botcontrol/stream.js
T
2024-02-15 02:24:42 +01:00

21 lines
568 B
JavaScript

const { ActivityType } = require("discord.js");
module.exports = {
name: 'stream',
description: 'Mettre le bot en stream',
category: 'botcontrol',
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}`);
},
};