Skip to content
Script for /u/timestamp_bot
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Readme.md readme Aug 23, 2017
cron.log
main.py Update main.py Nov 17, 2018
requirements.txt Update requirements.txt Nov 17, 2018
sample-config.ini delete malformed comments Aug 23, 2017

Readme.md

About

Reddit bot that parses rising posts with parent comments as youtube url & child replies as timestamps to create grand child comments of timestamped youtube url link.

Ran as a cron job every 1 hour.

Steps to Run (on linux server)

  1. cp sample-config.ini config.ini & configure your bot.
  2. which python & replace shebang line#1 of main.py with the python path. [Python3 recommended]
  3. pip install -r requirements.txt to install python dependencies.
  4. crontab -e & add main.py as cronjob at the end of file with following format:

0 * * * * cd <absolute-path-to-repo>;<absolute-path-to-main.py> >> <aboluste-path-to-cron.log> 2>&1

Example: 0 * * * * cd /var/www/timestamp_bot;/var/www/timestamp_bot/main.py >> /var/www/timestamp_bot/cron.log 2>&1

Debugging

  1. cat /var/log/syslog | grep cron to check if cron job is running fine.
  2. cat cron.log to check for errors from bot/reddit server.
  3. cat timestamp_bot_log.log to check bot process/logs.

Issues/Suggestions

Report all issues/suggestions at issue page.

You can’t perform that action at this time.