Files
gestion/commands/botcontrol/watch.js
T
2024-02-17 13:33:46 +01:00

25 lines
654 B
JavaScript

const { ActivityType } = require("discord.js");
module.exports = {
name: 'watch',
aliases: ['regarde'],
description: 'Changer le status du bot en watch',
emote: '👁️',
utilisation: 'watch <status>',
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.Watching,
url: streamURL
}]
});
message.channel.send(`Le bot est maintenant en streaming : ${streamText}`);
},
};