BeavisBot is a heavily-adapted port of the turntable.fm SparkleBot that has migrated from TT.fm to plug.dj to dubtrack.fm.
This bot uses https://github.com/anjanms/DubAPI as its API dependency and is designed to be run using a node.JS instance.
npm install
in the root folder of the checkoutKnown issues are located at https://github.com/AvatarKava/beavisbot/issues - please submit any bug reports or feature requests there!
Full details are here: https://github.com/Unitech/pm2
Start the process in pm2 with custom log locations:
pm2 start /srv/web/apps/plug.dj/BeavisBot/bot.js --name beavisbot -o /var/log/node/beavisbot.log -e /var/log/node/beavisbot.err --log-date-format 'YYYY-MM-DD HH:mm:ss'
Set pm2 to automatically run on startup
pm2 startup <ubuntu|centos|gentoo|systemd>
Save the processes running so they get restored any time pm2 is started
pm2 save
then in /etc/logrotate.d, create a file (name it whatever you like, "node" works well here) and use this or something along these lines as the contents:
/var/log/node/* {
daily
rotate 30
missingok
notifempty
sharedscripts
copytruncate
compress
delaycompress
dateext
}
This will do a daily rotation of the logs and save the last 30 days.