mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
add server mode to bot status
This commit is contained in:
@@ -136,9 +136,10 @@ function countReady() {
|
||||
async function updatePresence() {
|
||||
if (!client?.user) return;
|
||||
const { ready, total } = countReady();
|
||||
const mode = getMode();
|
||||
try {
|
||||
await client.user.setPresence({
|
||||
activities: [{ name: `${ready}/${total} Rovers Ready`, type: ActivityType.Watching }],
|
||||
activities: [{ name: `${mode} · ${ready}/${total} Rovers Ready`, type: ActivityType.Watching }],
|
||||
status: 'online',
|
||||
});
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user