friendlyreminderbot icon indicating copy to clipboard operation
friendlyreminderbot copied to clipboard

Test the code on the real bot account!

Open ykdojo opened this issue 2 years ago • 9 comments

I created a twittter account bot for this, but haven't tested the code on it yet.

https://twitter.com/imhereforyoubot

What's the best way to do it? Should I give the credentials to someone?

Also, what's the best platform for hosting the bot? Would it be maybe Replit - or something else?

ykdojo avatar May 20 '22 01:05 ykdojo

Replit has an 'always on' feature, but it's for paid accounts only.

I just found out about wyld.ml, which claims to have free virtual machines without the customer needing to put down a credit card. Naturally the machines have limited power, but we won't need much at all.

As for the best way to do it, I'm not sure.. I guess you could pick someone and give them the credentials.

erikkristoferanderson avatar May 20 '22 02:05 erikkristoferanderson

Afterward: I'd be willing to test out the code with your Twitter bot, if you like.

erikkristoferanderson avatar May 20 '22 02:05 erikkristoferanderson

That sounds great! Thank you. Should I just DM you the creds?

ykdojo avatar May 20 '22 02:05 ykdojo

Sure. I'm @ErikErikodes on twitter

erikkristoferanderson avatar May 20 '22 02:05 erikkristoferanderson

@ykdojo

To my understanding the twitter bot is based on Python.

We could link the Python document with UptimeRobot and a super-basic Django file, as Replit's free services do support an always on feature for websites.

This way it would be much cheaper, and we'd have a bit more power.

However, it also depends on how often you need to request information from Replit and the Python file, since from personal experience I know that the services tend to get temporarily delayed when overwhelmed with requests.

the-k-cmd avatar May 20 '22 02:05 the-k-cmd

Sure. I'm @ErikErikodes on twitter

Thanks! I followed you

ykdojo avatar May 20 '22 02:05 ykdojo

@the-k-cmd sure. putting it a basic django file might be ok... it would increase the complexity a little bit though

ykdojo avatar May 21 '22 00:05 ykdojo

I refactored the Twitter code, as well as the code that parses requirements.txt, because of the format change to requirements.txt. That is in PR #50

Currently the PR just prints the tweet instead of tweeting it, because without a bearer token, the tweepy Client gives a error: tweepy.errors.Unauthorized: 401 Unauthorized

erikkristoferanderson avatar May 21 '22 20:05 erikkristoferanderson

@ykdojo What is the status of my PR? I am new to open source contribution.

adityanarayanm095 avatar May 22 '22 06:05 adityanarayanm095