mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-07 23:04:47 +02:00
add competing
This commit is contained in:
@@ -58,6 +58,12 @@ module.exports = {
|
||||
value: 'watching',
|
||||
description: 'Le bot regarde',
|
||||
emoji: '👀'
|
||||
},
|
||||
{
|
||||
label: 'Competition',
|
||||
value: 'competing',
|
||||
description: 'Le bot participe à',
|
||||
emoji: '🕹️'
|
||||
}
|
||||
]);
|
||||
|
||||
@@ -112,6 +118,14 @@ module.exports = {
|
||||
url: url
|
||||
}]
|
||||
});
|
||||
} else if (value === 'competing') {
|
||||
client.user.setPresence({
|
||||
activities: [{
|
||||
name: text,
|
||||
type: ActivityType.Competing,
|
||||
url: url
|
||||
}]
|
||||
});
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user