Comments (6)
So, this would affect the main and isBlacklist methods in bot.py, correct?
from thelangbot.
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.
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.
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.
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.
Finalized with #19
from thelangbot.
Related Issues (20)
- Make language bot like contributors'/sponsors' posts
- Create an anki folder for templates HOT 1
- Make section for if you miss a day
- Implement Anti-Spamming Logic
- Change retweets based on Twitter poll HOT 1
- Extract DB functions into a `utils.py` File
- Convert Tests to Use `unittest`
- Create Landing Page for Langbot HOT 4
- Re-do Test Cases
- MySQL DB update issue HOT 3
- Add Langtwt introduction starter HOT 1
- Self Hosting or Cloud Hosting HOT 3
- get rid of the DB HOT 4
- ban users by immutable ID and not username HOT 1
- Make Repo More Developer Friendly HOT 1
- Fix thelangbot!
- Duplicate Status Error: Users Tweeting the Same Tweet Across Multiple Accounts
- Dockerfile Exposes Env Variables to Cron Job and Use Python-Slim Base
- Make a Japanese translation of the "About" section
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thelangbot.