Skip to content

Commit

Permalink
🔥 Remove prefix from config (not used)
Browse files Browse the repository at this point in the history
  • Loading branch information
eritislami committed Sep 19, 2023
1 parent debaf6b commit 843f4a7
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion commands/play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {
if (playlistPattern.test(url)) {
await interaction.editReply("🔗 Link is playlist").catch(console.error);

return bot.slashCommandsMap.get("playlist")!.execute(interaction, 'song');
return bot.slashCommandsMap.get("playlist")!.execute(interaction, "song");
}

let song;
Expand Down
2 changes: 1 addition & 1 deletion commands/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default {
}

if (!results || !results[0]) {
interaction.editReply({ content: i18n.__("search.noResults") })
interaction.editReply({ content: i18n.__("search.noResults") });
return;
}

Expand Down
1 change: 0 additions & 1 deletion config.json.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"TOKEN": "",
"MAX_PLAYLIST_SIZE": 10,
"PREFIX": "/",
"PRUNING": false,
"LOCALE": "en",
"STAY_TIME": 30,
Expand Down
1 change: 0 additions & 1 deletion interfaces/Config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export interface Config {
TOKEN: string;
PREFIX: string;
MAX_PLAYLIST_SIZE: number;
PRUNING: boolean;
STAY_TIME: number;
Expand Down
2 changes: 1 addition & 1 deletion structs/Bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { MissingPermissionsException } from "../utils/MissingPermissionsExceptio
import { MusicQueue } from "./MusicQueue";

export class Bot {
public readonly prefix = config.PREFIX;
public readonly prefix = "/";
public commands = new Collection<string, Command>();
public slashCommands = new Array<ApplicationCommandDataResolvable>();
public slashCommandsMap = new Collection<string, Command>();
Expand Down
1 change: 0 additions & 1 deletion utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ try {
} catch (error) {
config = {
TOKEN: process.env.TOKEN || "",
PREFIX: process.env.PREFIX || "!",
MAX_PLAYLIST_SIZE: parseInt(process.env.MAX_PLAYLIST_SIZE!) || 10,
PRUNING: process.env.PRUNING === "true" ? true : false,
STAY_TIME: parseInt(process.env.STAY_TIME!) || 30,
Expand Down

0 comments on commit 843f4a7

Please sign in to comment.