chore: merge dev to main #172
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue