mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-06 22:42:58 +02:00
botcontrol add
This commit is contained in:
@@ -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}`);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user