do not set rich presence in dev mode
All checks were successful
Lint and Format Check / lint-and-format (pull_request) Successful in 22s

This commit is contained in:
Mylloon 2024-09-18 18:13:31 +02:00
parent 0571b6cb85
commit a364b85002
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 5 additions and 3 deletions

View file

@ -12,7 +12,7 @@ export const run = async (isDev: boolean) => {
// Client Discord.JS
const client_name = "Client";
await loadClient()
await loadClient(isDev)
.then(async (client) => {
if (isDev) {
// Attach debugging listeners

View file

@ -8,7 +8,9 @@ import { YoutubeiExtractor } from "discord-player-youtubei";
import { YoutubeWebTokenRoutine } from "./music";
/** Creation of the client and definition of its properties */
export default async () => {
export default async (isDev: boolean) => {
const activities = isDev ? [] : [{ name: "/help", type: ActivityType.Watching }];
const client: Client = new Client({
shards: "auto",
intents: [
@ -18,7 +20,7 @@ export default async () => {
GatewayIntentBits.GuildVoiceStates,
],
presence: {
activities: [{ name: "/help", type: ActivityType.Watching }],
activities,
},
});