foxbot is a great way for room moderators on plug.dj to entertain and manage the crowd.
Currently we support three methods of installation:
- Click this
- Copy the code
- Paste it into your browser's javascript console (Chrome: Ctrl-Shift-J, Firefox: Ctrl-Shift-K)
- Enjoy!
- Download chainloader.user.js
- Run it in Greasemonkey
- Enjoy!
- Download foxbot.js
- Copy the code and paste it into your browser's javascript console (Chrome: Ctrl-Shift-J, Firefox: Ctrl-Shift-K)
- Enjoy!
- Sebastian Sitaru <s.sitaru@gmx.de> (1NT)
- FoxtrotFire
- Royal_Soda (http://www.harry-j.com/)
- [tw].me
Find us in Electronic Elements (TZ: GMT+1). If you copy our code, please mention us and include a link to this page.
v0.1 (Sep 2, 2012): Initial github version
If you want to fork this and extend it yourself, feel free to do so.
You should find the code very interesting, but here's some notes:
- Look for the variable o_chatcmds if you want to add any commands. The syntax is
var o_chatcmds = {
'/commandname': {
f: f_yourCommandfunction,
needsPerm: true/false
}, ...
};
- If you want to add any init code, do so in the
init()
function. By default, it will initialize the following:- send online message
- add the event listeners
- mute the player
Oh, and a message to the devs at plug.dj: Please, please, please update your API documentation, it was a pain reverse-engineering that minified JS code ;)