do not set rich presence in dev mode
All checks were successful
Lint and Format Check / lint-and-format (pull_request) Successful in 22s
All checks were successful
Lint and Format Check / lint-and-format (pull_request) Successful in 22s
This commit is contained in:
parent
0571b6cb85
commit
a364b85002
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