Giter VIP home page Giter VIP logo

Comments (6)

Rairye avatar Rairye commented on June 3, 2024

So, this would affect the main and isBlacklist methods in bot.py, correct?

from thelangbot.

Rairye avatar Rairye commented on June 3, 2024

Addition: I am not sure if you started working on this, but I threw together something at:
https://github.com/Rairye/thelangbot/blob/main/bot.py

Please note that it has been a while since I have looked at SQL. Also, I have not double checked the code yet.

Also, I did it just for the blacklist but I will add something for supporters.

from thelangbot.

maxdemaio avatar maxdemaio commented on June 3, 2024

Hey @Rairye ! This looks actually exactly what we'd like to do. Getting them in a set would basically limit it to just 2 db queries per time we look for new tweets to retweet. I'm going to see if I can implement your code this weekend.

Testing is a little weird at the moment because we have to debug in production. I was thinking of creating a Markdown file soon on how to setup a test bot. This way we could test new code implementations w/o blasting things out on the main account 😆

from thelangbot.

Rairye avatar Rairye commented on June 3, 2024

Thanks for the feedback. Should I go ahead and make a pull request. (I still haven't double checked the code. Also, I don't usually work with CRUD so I am not sure if my SQL is correct.

from thelangbot.

maxdemaio avatar maxdemaio commented on June 3, 2024

Yes go right ahead with the PR 🚀 Basically just need to check that the SQL query is sanitized and works properly which I can double check on my end.

I have some basic test cases written but they mostly only work with Twitter bot secrets set up. Hopefully soon I'll forge a readme for making a test bot.

from thelangbot.

maxdemaio avatar maxdemaio commented on June 3, 2024

Finalized with #19

from thelangbot.

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.