mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
25 lines
645 B
JavaScript
25 lines
645 B
JavaScript
const { ActivityType } = require("discord.js");
|
|
|
|
module.exports = {
|
|
name: 'play',
|
|
aliases: ['joue'],
|
|
description: 'Changer le status du bot en play',
|
|
emote: '🎵',
|
|
utilisation: 'play <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.Playing,
|
|
url: streamURL
|
|
}]
|
|
});
|
|
|
|
message.channel.send(`Le bot est maintenant en streaming : ${streamText}`);
|
|
},
|
|
}; |