Coder Social home page Coder Social logo

mwillsey / crossbot Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 8.0 815 KB

A slackbot to compete on mini crosswords (or any other daily challenge).

License: GNU General Public License v3.0

Python 89.43% Dockerfile 0.34% Makefile 0.68% Shell 0.21% CSS 0.31% HTML 5.15% JavaScript 3.17% Stan 0.70%
crossword slack-bot

crossbot's Introduction

Hi there πŸ‘‹

I'm a professor at UC Berkeley in the EECS department.

Check out more at my website.

My current research focuses are program optimization and analysis, powered by techniques such as e-graphs, equality saturation, and datalog.

crossbot's People

Contributors

brianhou avatar dependabot[bot] avatar dwoos avatar emichael avatar jamesbornholt avatar kelloggm avatar mwillsey avatar pavpanchekha avatar spernsteiner avatar wilcoxjay avatar ztatlock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

crossbot's Issues

Morning reminders

Crossbot no longer gives daily reminders with a link to the crossword and sudoku

Plots are covered by legend and are hard to read

The plot is hard to read, and the legend covers half the plot.

  • Switch from line to dot plot. The lines are meaningless and confusing
  • Move legend away from plot area
  • Widen plot to fit more days

Crossbot should only send messages to a channel when it makes sense

Related to #35.

When people use do "/crossbot add ..." outside of the main channel, they get 500 service error. I think this is linked to a lack of permissions. When the app echoes the message back as the user, it will fail if the bot (app?) isn't in that channel. Additionally, the reaction will fail in channels that i am not a part of, since it's using my API key.

I think we should just have crossbot respond to everything in the slash command (almost always ephemerally), and check before echoing back if it has permissions.

Saved SQL queries

Now that there is this SQL query interface, it would be great if some of our better queries could be easily saved and reused. I could imagine an interface like this:

  • cb sql --save <name> <query ....> saves the query under a fixed name. If a binding for that name already exists probably best to override.
  • cb saved <name> runs a saved query, or prints an error message if none exists.

Steak reporting is broken.

When reporting who won the day before last, it actually reports the person with the worst time (I think). I think it's broken in other ways too :(

Add more ranking functionality.

announce could include some information about the best performance of the week (or other time period). This could be a simple min time or something more complicated like variance from the mean of that day.

log scale enhancements

Log scale should be "symlog" to support the negative numbers in the normalized plots. Also, log scale should disable clipping but preserve reasonable y-axis ticks.

rank command

The plotting functions (times, normalized, elo/glicko in the future) could also be used to just output a ranking of the current day. So rank and plot would just be two ways to visualize the same input data.

Also, the ranking function should show the delta of individuals from the previous day (in ranking).

Clarification?

Wait...is this a bot that will automatically scrape the crossword times people post in a slack channel and save them to a leaderboard of some kind?

Help on Setup?

@mwillsey this crossbot sounds awesome but I'm quite unfamiliar with python slackbots. Would you possibly be able to guide me on how to set this up?

Refine add output

  • Don’t show date if it’s today
  • show date after time, like the add command

Allow database dumps over slack

You should be able to @crossbot dump-db and have crossbot upload the database to slack. This would make it really easy to develop crossbot.

Persist deletions and edits of times.

The times tables should be pseudo write-only. One easy way to get this is to add a new column invalidated which holds a timestamp (or not). Deletion or editing of a time will just add a timestamp to that column, marking it as invalid. Uniqueness would now be over (user, date, invalid), allowing many invalid entries for a date, by only one valid one.

Plot returns three times

Running @crossbot plot returns three plots. The first one comes back quickly, then the second takes a little longer, and the third takes about a minute. This smells like retries to me, especially since crossbot itself is reporting that it received three requests for plots.

Achievements should be public

Right now, if a person gets a streak achievement in a private channel, the achievement goes there instead of public.

announce automatically

crossbot should announce every day in the morning and/or when the crossword comes out.

README refers to non-existant requirements.txt

In the README installation instructions, one step refers to requirements.txt:

# install and setup the package
pip install -r requirements.txt

But it seems this file got lost at some point? I think it should include the Python statistics package or maybe just mention that needs to be installed now to test crossbot.

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.