Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Eklavya DevRant Bot-Making isn't a skill you can put on your Resume, so, if you make bots that don't have any use, then you have wasted your time.
-
Eklavya17684y@theabbie It is using API of Unsplash and I don't think so that it contain shit pics
-
@Eklavya I don't see any use of posting stock images here, but fine, you can extend it to other uses as well.
-
Eklavya17684y@theabbie I have deployed it on heroku using cronjob that runs everyday, but neither it is running nor giving me any error
Do you have any idea about this
Server is active - karlson.herokuapp.com -
Eklavya17684y@theabbie I have no idea of runkit, can I deploy my bot using cronjob to run everyday?
-
@Eklavya Runkit is a lightweight node.JS hosting, cron-job.org is a cron service, it will call your server at fixed intervals, no Idea why isn't working, put your code on GitHub if you want help.
-
@Eklavya You can't use "node-cron", it only works when the server keeps running all the time, like on Heroku, on Runkit, you need to create a server which can be called using a URL, then use cron-job.org to call that URL every minute.
-
Also, don't keep the password public, it has environment variables, keep password there.
-
Eklavya17684y@theabbie Did you mean, whenever anyone hits that url, it would run any of it's function
-
@Eklavya check this one
https://runkit.com/abhishektech/...
After that, click on the publish button, it will create an endpoint, something.runkit.sh, go to cron-job.org and create cron job for that URL, every minute. -
Eklavya17684y@theabbie also, there is one problem
The latest rantscript version is throwing error, so I used the earliest version released
And runkit only supports the latest version
Idk why it happened with me -
Eklavya17684y@theabbie Idk why can't my bot post rants instead of undefined posts
I am not sure but I think that it may be the problem with the endpoint
Prob rantscript is using DevRant.io and the domain with .com can help me out
Any idea? -
@Eklavya What rants will your bot post? It's not that hard, rantscript works I guess.
Related Rants
Localhost is better than any other hosting. 😌
rant
digital ocean
localhost
web hosting