Removed a bunch of console.logs

pull/68/head
PineappleFan 3 years ago committed by GitHub
parent 7f9848ae7f
commit d69688963b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -51,7 +51,6 @@ const callback = async (interaction: CommandInteraction): Promise<unknown> => {
let channel: string | GuildChannel;
if (typeof c === "string") channel = interaction.guild!.channels.cache.get(c as string)!.id;
else channel = (c[0] as unknown as GuildChannel).id;
console.log(channel);
if (!predicted[channel]) predicted[channel] = [];
m = await interaction.editReply({
embeds: [
@ -139,7 +138,6 @@ const callback = async (interaction: CommandInteraction): Promise<unknown> => {
}
categorized[channel] = selected;
}
console.log(categorized);
};
const check = () => {

@ -94,7 +94,6 @@ const dmcallback = async (interaction: CommandInteraction, firstDescription: str
closed = true;
} else {
const response = await client.database.premium.removePremium(interaction.user.id, i.values[0]!);
console.log(response);
}
} while (!closed);
await interaction.deleteReply();

@ -29,7 +29,6 @@ const callback = async (interaction: CommandInteraction): Promise<void> => {
while (!timedOut) {
const config = await client.database.guilds.read(interaction.guild!.id);
const moderation = config.moderation;
console.log(moderation);
await interaction.editReply({
embeds: [
new EmojiEmbed()

@ -472,9 +472,7 @@ const callback = async (interaction: CommandInteraction) => {
const newPage = await editTrack(i, m, roles);
if (_.isEqual(newPage, defaultTrackData)) break;
if (!newPage) break;
console.log(newPage);
tracks.push(newPage);
console.log(tracks);
page = tracks.length - 1;
break;
}

@ -4,7 +4,6 @@ import { userAbout } from "../../commands/user/about.js";
const command = new ContextMenuCommandBuilder().setName("User info");
const callback = async (interaction: UserContextMenuCommandInteraction) => {
console.log("callback");
const guild = interaction.guild!;
let member = interaction.targetMember;
if (!member) member = await guild.members.fetch(interaction.targetId);
@ -12,7 +11,6 @@ const callback = async (interaction: UserContextMenuCommandInteraction) => {
};
const check = async (_interaction: UserContextMenuCommandInteraction) => {
console.log("check");
return true;
};

@ -52,7 +52,6 @@ export async function testNSFW(url: string): Promise<NSFWSchema> {
const predictions = (await nsfw_model.classify(img, 1))[0]!;
img.dispose();
console.log(2, predictions);
const nsfw = predictions.className === "Hentai" || predictions.className === "Porn";
await client.database.scanCache.write(hash, "nsfw", nsfw);
@ -204,7 +203,6 @@ export async function TestImage(url: string): Promise<string | null> {
oem: 1,
psm: 3
});
console.log(text);
return text;
}

@ -268,7 +268,6 @@ export class Transcript {
.replace(/=/g, "")
.replace(/\//g, "_")
.replace(/\+/g, "-");
console.log(iv);
for (const message of transcript.messages) {
if (message.content) {
const encCipher = crypto.createCipheriv("AES-256-CBC", key, iv);
@ -337,10 +336,8 @@ export class Transcript {
}
async read(code: string, key: string, iv: string) {
console.log("Transcript read");
let doc: TranscriptSchema | null = await this.transcripts.findOne({ code: code });
let findDoc: findDocSchema | null = null;
console.log(doc);
if (!doc) findDoc = await this.messageToTranscript.findOne({ transcript: code });
if (findDoc) {
const message = await (
@ -366,7 +363,6 @@ export class Transcript {
if (!data) return null;
doc = JSON.parse(Buffer.from(data).toString()) as TranscriptSchema;
}
console.log(doc);
if (!doc) return null;
for (const message of doc.messages) {
if (message.content) {

@ -99,9 +99,7 @@ export const Logger = {
},
async log(log: LoggerOptions): Promise<void> {
if (!(await isLogging(log.hidden.guild, log.meta.calculateType))) return;
console.log(log.hidden.guild);
const config = await client.database.guilds.read(log.hidden.guild);
console.log(config.logging.logs.channel);
if (config.logging.logs.channel) {
const channel = (await client.channels.fetch(config.logging.logs.channel)) as Discord.TextChannel | null;

Loading…
Cancel
Save