Giter Site home page Giter Site logo

levquizbowlbot's Introduction

Lev Bernstein

DevOps Automation Engineer at Broadridge, former DevOps Engineer at Zoom. NYU CS '2022.

levquizbowlbot's People

Contributors

huang-a avatar levbernstein avatar

Stargazers

 avatar  avatar

Watchers

 avatar

levquizbowlbot's Issues

Scoresheet inaccuracies

Scoresheets are close to being fully implemented. I have attached a sample from a recent game played in the NYU Quiz Bowl Discord (it's a .csv file, but GitHub does not support attaching those. I have compressed it into a .zip). There are a few issues you might notice.

  1. The TU scores on TU 10 are all jammed into one cell, and feature one quotation mark.
  2. TU 11 is missing (Captain No-Beard got 10 on the TU and blue team got 30 on the bonus).
  3. Doug Simons' scores are inaccurate; he is missing a power on TU 10.
  4. Captain No-Beard's scores are inaccurate; he got a neg on TU 10 and a 10 on TU 11.
  5. Natural Log's scores are inaccurate; he got a 10 on TU 12.
  6. Several cells have line breaks included in the cell.
  7. Michaelp's name is included twice in the player columns.
  8. Blue team's bonus total is inaccurate (due to the missing 30 points on TU 11).
  9. Total team scores are not yet implemented.

I will continue work on the scoresheets in order to fix these issues.

Line 0 split into two lines

Example:

TU# | Red Bonus | Blue Bonus | Green Bonus | Orange Bonus | Yellow Bonus | Purple Bonus | apoorva
Captain No-Beard |   |   |   |   |   |   |  
0 | 30 | 30 | 0 | 0 | 0 | 0 | "100

Should read:

TU# | Red Bonus | Blue Bonus | Green Bonus | Orange Bonus | Yellow Bonus | Purple Bonus | apoorva | Captain No-Beard
0 | 30 | 30 | 0 | 0 | 0 | 0 | 100 | 100

There are other issues as well, as can be seen by the second 100 not being recorded; that, at least, is due to line 1 being split.

Bot attempts to parse images as strings

The bot examines every message to see if it's a command, including messages that are just people sending images. The bot tries to read the image like a string, which creates issues with the isInt() helper method. Full output here:

Ignoring exception in on_message
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/discord/client.py", line 333, in _run_event
await coro(*args, **kwargs)
File "QBBot.py", line 371, in on_message
if len(games) != 0 and isInt(text.content): # Assigns points. Checks len games to avoid unnecessary calls.
File "QBBot.py", line 30, in isInt
if st[0] == '-' or st[0] == '+':
IndexError: string index out of range

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.