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

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

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

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

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

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

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

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

Loading…
Cancel
Save