Browse Source

Remove unnecessary logging

pull/4/head
Abheek Dhawan 4 years ago
parent
commit
101034cd27
  1. 1
      README.md
  2. 2
      bot/awesomescibo.mjs
  3. 2
      bot/package.json

1
README.md

@ -6,6 +6,7 @@
<a href="https://github.com/ADawesomeguy/AwesomeSciBo/blob/master/LICENSE"><img src="https://img.shields.io/github/license/ADawesomeguy/AwesomeSciBo?color=blue&style=for-the-badge"></a> <a href="https://github.com/ADawesomeguy/AwesomeSciBo/blob/master/LICENSE"><img src="https://img.shields.io/github/license/ADawesomeguy/AwesomeSciBo?color=blue&style=for-the-badge"></a>
<a href="https://github.com/ADawesomeguy/AwesomeSciBo/issues"><img src="https://img.shields.io/github/issues/ADawesomeguy/AwesomeSciBo?color=blue&style=for-the-badge"></a> <a href="https://github.com/ADawesomeguy/AwesomeSciBo/issues"><img src="https://img.shields.io/github/issues/ADawesomeguy/AwesomeSciBo?color=blue&style=for-the-badge"></a>
<a href="https://github.com/CQCumbers/ScibowlDB"><img src="https://img.shields.io/badge/API-ScibowlDB-blue?style=for-the-badge"></a> <a href="https://github.com/CQCumbers/ScibowlDB"><img src="https://img.shields.io/badge/API-ScibowlDB-blue?style=for-the-badge"></a>
<a href="https://hub.docker.com/r/adawesomeguy/awscibo"><img src="https://img.shields.io/docker/pulls/adawesomeguy/awscibo?style=for-the-badge"></a>
</p> </p>
<!--[![GitHub stars](https://img.shields.io/github/stars/ADawesomeguy/AwesomeSciBo?color=blue&style=for-the-badge)](https://github.com/ADawesomeguy/AwesomeSciBo/stargazers) <!--[![GitHub stars](https://img.shields.io/github/stars/ADawesomeguy/AwesomeSciBo?color=blue&style=for-the-badge)](https://github.com/ADawesomeguy/AwesomeSciBo/stargazers)

2
bot/awesomescibo.mjs

@ -311,7 +311,6 @@ client.on('message', async message => {
}) })
} else { } else {
var subject = message.content.substring(15); var subject = message.content.substring(15);
console.log("Subject is:", subject);
var subjectURL; var subjectURL;
switch (subject) { switch (subject) {
case 'astro': case 'astro':
@ -341,7 +340,6 @@ client.on('message', async message => {
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
var questionNum = Math.floor(Math.random() * data.length); var questionNum = Math.floor(Math.random() * data.length);
console.log(`index ${questionNum} is ${data[questionNum]}`)
let filter = m => m.author.id === message.author.id; let filter = m => m.author.id === message.author.id;
message.reply(data[questionNum].tossup_question).then(() => { message.reply(data[questionNum].tossup_question).then(() => {
message.channel.awaitMessages(filter, { message.channel.awaitMessages(filter, {

2
bot/package.json

@ -5,7 +5,7 @@
"node-fetch": "^2.6.1" "node-fetch": "^2.6.1"
}, },
"name": "awscibo", "name": "awscibo",
"version": "0.4.0", "version": "0.4.1",
"main": "awesomescibo.mjs", "main": "awesomescibo.mjs",
"bin": { "bin": {
"awscibo": "./awesomescibo.mjs" "awscibo": "./awesomescibo.mjs"

Loading…
Cancel
Save