Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.42 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.42 KB

bot-fanatic

A simple bot built with nightmare.js to earn your fanatic badge on StackOverflow

Steps

# Clone this repository
git clone https://github.com/nkshio/bot-fanatic.git

# Install Dependencies
npm install

# Update your login credentials
vi config.json

# Start a cron job
env EDITOR=nano crontab -e

# Setup cron for 6am everyday
0 6 * * * cd ~/path/to/bot-fanatic && node fanatic.js

Please Note

If you are running this on ubuntu (virtual X server environment), you will need to use xvfb-run as below

# Update the system dependencies
sudo apt-get update

# Install nodejs, npm, xvfb and related dependencies
apt-get install -y nodejs npm xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps clang libdbus-1-dev libgtk2.0-dev libnotify-dev libgnome-keyring-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev gcc-multilib g++-multilib

# Start a cron job
env EDITOR=nano crontab -e

# Setup cron for 6am everyday
0 6 * * * cd ~/path/to/bot-fanatic && DEBUG=nightmare xvfb-run -a --server-args="-screen 0 1366x768x24" node fanatic.js

License

MIT. See LICENSE for details.