mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 10:00:46 -04:00
add server mode to bot status
This commit is contained in:
@@ -136,9 +136,10 @@ function countReady() {
|
|||||||
async function updatePresence() {
|
async function updatePresence() {
|
||||||
if (!client?.user) return;
|
if (!client?.user) return;
|
||||||
const { ready, total } = countReady();
|
const { ready, total } = countReady();
|
||||||
|
const mode = getMode();
|
||||||
try {
|
try {
|
||||||
await client.user.setPresence({
|
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',
|
status: 'online',
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user