Skip to content

ankryption/bot-fanatic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A bot to earn your fanatic badge on StackOverflow

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published