Git Product home page Git Product logo

golords's People

Contributors

elliotcubit avatar tspencer2000 avatar

Watchers

 avatar  avatar

Forkers

tspencer2000

golords's Issues

Store the previous max learn to count in a new table

Right now, when the bot restarts, we blindly trust that the first counting number we see is correct. This is obviously not good.

Store the "previous" number in a new table. It should be read in when the bot first starts, and it should only be stored when the bot shuts down. (Though, it wouldn't be the worst thing if it was always an accurate count that updated with every new message, as we could also store the all-time maximum in this table to allow some command to see that)

set up travis

It would be nice to use Travis CI for this, since it can be gotten for free via github student

Database switch prep

  • Switch from using user String()s to using their IDs in the database so we don't have to cleanse names. Right now, ''james and 'james will overwrite each other in the databse

  • Add some methods to convert from a user's ID to their string identifier. It would be nice to use nicknames where we display a String() instead of user#discriminator. User ID is definitely unacceptable, as it's a long string of numbers

  • ^ Make all the changes associated with that throughout the codebase

Compare beancounter by timestamp

Sometimes, people will send messages at almost the exact same time. This leads to weird things happening, like:

  • Multiple people penalized for messing up
  • The wrong person being penalized alltogether
  • The bot not marking mistakes when it should

This could be solved by comparing incoming messages by their timestamps which are encoded into the message ID, but implementation will be weird.

  • Do we just cache the messages and compare them later?
  • When is it safe to accept a message is definitely the correct or wrong answer?
  • What should we do if timestamps are identical to the millisecond (or whatever precision discord timestamps are)
  • other concerns?

Add command permission structure

Everyone shouldn't be able to run certain commands. Add a way to discriminate between admins and non-admins with respect to the bot.

Help string is disgusting

Clean up the help string. It's gotten very messy.

Something like Rythmbot's "!settings" would be really good to see -

The biggest problem here is for querybeans. Since there are several commands associated with the module, they're all printed out in one go with no explanation for what the different commands do. It's unusable.

Clean bean code

The cases for the big switch in querybeans should be split into multiple functions or files to make things more readable/ modular

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.