Skip to content

Commit

Permalink
fix: remove unnecessary console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
virtual-designer committed Jul 2, 2024
1 parent 022384f commit 2d6dc3f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import { isSnowflake } from "@framework/utils/utils";
import ReactionRoleService from "@main/services/ReactionRoleService";
import {
ChatInputCommandInteraction,
parseEmoji,
PermissionFlagsBits,
Snowflake
Snowflake,
parseEmoji
} from "discord.js";

type CreateReactionRoleCommandArgs = {
Expand Down Expand Up @@ -142,8 +142,6 @@ class CreateReactionRoleCommand extends Command {
return;
}

console.log(args.roles);

const rolesUnprocessed: string[] = args.roles.split(/\s+/);

if (rolesUnprocessed.length > 7) {
Expand Down
3 changes: 1 addition & 2 deletions src/main/typescript/commands/moderation/ModStatsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { PermissionFlags } from "@framework/permissions/PermissionFlag";
import { Colors } from "@main/constants/Colors";
import { Infraction, infractions } from "@main/models/Infraction";
import InfractionManager from "@main/services/InfractionManager";
import { ActionRowBuilder, italic, StringSelectMenuBuilder, time, User } from "discord.js";
import { ActionRowBuilder, StringSelectMenuBuilder, User, italic, time } from "discord.js";
import { and, asc, count, desc, eq, gte } from "drizzle-orm";

type ModStatsCommandArgs = {
Expand Down Expand Up @@ -86,7 +86,6 @@ export default class ModStatsCommand extends Command {
return;
}

console.log(state.count);
const pagination: Pagination<Infraction> = Pagination.withFetcher(
async ({ limit, page }) => {
const { sortMode, createdAtFilters } = state;
Expand Down
2 changes: 0 additions & 2 deletions src/main/typescript/services/InfractionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2321,8 +2321,6 @@ class InfractionManager extends Service {
failed_users: Snowflake[];
};

console.log(response);

bannedUsers.push(...response.banned_users);
failedUsers.push(...response.failed_users);
} catch (error) {
Expand Down
2 changes: 0 additions & 2 deletions src/main/typescript/services/ShellService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ class ShellService extends Service {
return;
}

console.log(type, payload);

switch (type) {
case "raw_cmd":
this.executeShellCommand(payload, ws);
Expand Down
4 changes: 0 additions & 4 deletions src/main/typescript/services/SystemUpdateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ class SystemUpdateService extends Service {
const filePath = path.resolve(updatePath, "sudobot", file);
const systemFilePath = path.join(__dirname, "../../../../", file);

console.log(filePath);
console.log(existsSync(filePath));
console.log(existsSync(systemFilePath));

if (!existsSync(filePath) || existsSync(systemFilePath)) {
continue;
}
Expand Down

0 comments on commit 2d6dc3f

Please sign in to comment.