chore: merge dev to main #172

Merged
Anri merged 11 commits from dev into main 2024-09-18 18:25:04 +02:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit a364b85002 - Show all commits

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,
},
});