mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-07 14:55:25 +02:00
trop de truc pour tout ecrire
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
const { ActivityType } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'competion',
|
||||
aliases: ['compet'],
|
||||
description: 'Changer le status du bot en competition',
|
||||
emote: '🎤',
|
||||
utilisation: 'compet <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.Competing,
|
||||
url: streamURL
|
||||
}]
|
||||
});
|
||||
|
||||
message.channel.send(`Le bot est maintenant en compétition : ${streamText}`);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user