Skip to content

Commit 78fb16b

Browse files
committed
Remove console logs
1 parent e262096 commit 78fb16b

File tree

2 files changed

+10
-22
lines changed

2 files changed

+10
-22
lines changed

dist/main.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,28 @@ function allowThumbsOnly(reaction, user) {
2020
}
2121
Canister.on("message", (message) => __awaiter(this, void 0, void 0, function* () {
2222
const matched = message.content.match(/^!poll\s+?(.+)/i); // \s+?(\d)
23-
console.log(message.content);
2423
if (matched && matched.index !== -1) {
25-
console.log("matchec command!! :OOO SCREAMS");
2624
const pollQuestion = matched[1];
2725
const pollTimeout = parseInt(matched[2], 10);
2826
const embedOptions = {
2927
title: pollQuestion,
3028
};
3129
const embed = new discord_js_1.RichEmbed(embedOptions);
32-
console.log("Trying stuff now");
3330
try {
34-
console.log("SENDING POPCORN MESSAGES");
3531
const botMessage = yield message.channel.send("@everyone:", embed);
3632
const yesReaction = yield botMessage.react(THUMBS_UP);
3733
const noReaction = yield botMessage.react(THUMBS_DOWN);
38-
console.log("POP MESSAGES SENT");
3934
if (message.deletable) {
4035
message.delete();
4136
}
42-
Canister.on("messageReactionAdd", (reaction, { username }) => __awaiter(this, void 0, void 0, function* () {
43-
if (reaction.message.id === botMessage.id) {
44-
console.log(`${username} has voted! total: ${reaction.count}`);
45-
}
46-
}));
37+
// Canister.on("messageReactionAdd", async (reaction: MessageReaction, { username }: User) => {
38+
// if (reaction.message.id === botMessage.id) {
39+
// console.log(`${username} has voted! total: ${reaction.count}`);
40+
// }
41+
// });
4742
// setTimeout(() => {
4843
// botMessage.delete();
4944
// }, pollTimeout * 1000);
50-
console.log("TASK FINISHED");
5145
}
5246
catch (err) {
5347
console.error(err);

src/main.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,28 @@ function allowThumbsOnly(reaction: MessageReaction, user: User) {
1414

1515
Canister.on("message", async (message: Message) => {
1616
const matched = message.content.match(/^!poll\s+?(.+)/i); // \s+?(\d)
17-
console.log(message.content);
1817
if (matched && matched.index !== -1) {
19-
console.log("matchec command!! :OOO SCREAMS");
2018
const pollQuestion: string = matched[1];
2119
const pollTimeout: number = parseInt(matched[2], 10);
2220
const embedOptions: RichEmbedOptions = {
2321
title: pollQuestion,
2422
};
2523
const embed: RichEmbed = new RichEmbed(embedOptions);
26-
console.log("Trying stuff now");
2724
try {
28-
console.log("SENDING POPCORN MESSAGES")
2925
const botMessage: Message = await message.channel.send("@everyone:", embed) as Message;
3026
const yesReaction: MessageReaction = await botMessage.react(THUMBS_UP);
3127
const noReaction: MessageReaction = await botMessage.react(THUMBS_DOWN);
32-
console.log("POP MESSAGES SENT");
3328
if (message.deletable) {
3429
message.delete();
3530
}
36-
Canister.on("messageReactionAdd", async (reaction: MessageReaction, { username }: User) => {
37-
if (reaction.message.id === botMessage.id) {
38-
console.log(`${username} has voted! total: ${reaction.count}`);
39-
}
40-
});
31+
// Canister.on("messageReactionAdd", async (reaction: MessageReaction, { username }: User) => {
32+
// if (reaction.message.id === botMessage.id) {
33+
// console.log(`${username} has voted! total: ${reaction.count}`);
34+
// }
35+
// });
4136
// setTimeout(() => {
4237
// botMessage.delete();
4338
// }, pollTimeout * 1000);
44-
console.log("TASK FINISHED");
4539
} catch (err) {
4640
console.error(err);
4741
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy