Giter VIP home page Giter VIP logo

Comments (3)

FreekBes avatar FreekBes commented on August 30, 2024

Use the built-in task scheduler. Hit windows + S on your keyboard, type Task Scheduler and run the result.

In the sidebar on the right, click "create a task", then on the "triggers" tab you can set up a so-called trigger which runs the bot. Click "new", and in advanced settings you can set "repeat task every" to 5 minutes or so.

I'm not entirely sure how to set up Task Scheduler further than that. Maybe this link might be of help: https://www.windowscentral.com/how-create-automated-task-using-task-scheduler-windows-10

from insta_reddit_bot.

MMJv3 avatar MMJv3 commented on August 30, 2024

thank you!

now, do you know of any way to fix clearing the temp folder automatically?

from insta_reddit_bot.

FreekBes avatar FreekBes commented on August 30, 2024

You have to modify the clearTemp() function in main.js for that. Instead of having exec run the rf -rf command, make it run the equivalent command for Windows.

Also, video is not supported on Windows, as ffmpeg is missing. You could try installing it from here, but I would suggest running the code in a virtual box instead (or, even better, use the Windows Subsystem for Linux, although I'm not sure if cron works there). This would also "fix" the issue for the temp folder.

from insta_reddit_bot.

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.