Giter Site home page Giter Site logo

Comments (7)

ramalamadingdong avatar ramalamadingdong commented on May 25, 2024

The reference to other daily programmer right now this is being done by pinning the post is that how you want to keep it and just make a bot that pins it, or would you rather have it save it to something else like a webpage or google document or whatever?

from operationcode-pybot.

apex-omontgomery avatar apex-omontgomery commented on May 25, 2024

Your call. Maybe save it in a text format. Or just save the links to them all

from operationcode-pybot.

ramalamadingdong avatar ramalamadingdong commented on May 25, 2024

I got something together, it works on a test slack I made would you like me to merge it with your existing pybot?

from operationcode-pybot.

hollomancer avatar hollomancer commented on May 25, 2024

Heya, is there a PR associated with this issue?

from operationcode-pybot.

ramalamadingdong avatar ramalamadingdong commented on May 25, 2024

from operationcode-pybot.

JudsonStevens avatar JudsonStevens commented on May 25, 2024

We've decided to go with a rewrite of the bot, so we're revisiting this one. We ended up going through the historical records of all the posts in daily-programmer and extracting into Airtable everything that matched the general posting pattern - that ended up getting us around 750 records. Moving forward, the bot will monitor posts into that channel and extract anything with the right format to Airtable. We are also recording the message timestamps of the messages themselves, so we'll be adding in a a slash command or something similar to list out all of the previous problems.

from operationcode-pybot.

JudsonStevens avatar JudsonStevens commented on May 25, 2024

I've scoped this down to the following capabilities:

  • When a "manual" daily programmer is posted, as long as it has a line formatted as such: == <Current Date> - Daily Programmer === the bot will pick it up
    • For example: == Thursday January 20th 2022 - Daily Programmer ===
    • The bot will check for a matching problem in Airtable
    • If there is a match, increment the posted count and update the last_posted date
    • If there isn't a match, create a new row
  • If a user uses the /daily-programmer-problem slash command, the bot will randomly select a problem and send it to the user
    • At some point we should implement tracking so users don't get repeat problems, but for now it's fine
  • We'll add a scheduled job to post a problem daily from the list, focusing on problems that haven't been posted for a while with some slight randomization

from operationcode-pybot.

Related Issues (20)

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.