Commit Graph

240 Commits (9068827d7c00321d771867f68bfe5e286e51a2ae)

Author SHA1 Message Date
Icedream 27cda8f7f4 Update TS3Bot to 2ee4dc32c3. 2015-11-02 16:12:49 +01:00
Icedream 2ee4dc32c3 Quick fix for the no-metadata crash, closes #23. 2015-11-02 16:06:34 +01:00
Icedream b1cc9f6255 Fix pipes from TS3 query not being decoded, fixes #22. 2015-11-02 15:42:37 +01:00
Icedream bf6f1ce081 Update TS3Bot to 02e6f0c489. 2015-11-02 13:38:40 +01:00
Icedream 02e6f0c489 Boot Xvfb via app.iced. 2015-11-02 13:38:09 +01:00
Icedream baa6796896 Update TS3Bot to 8afc967796. 2015-11-02 13:27:44 +01:00
Icedream 8afc967796 Print more details on service startup failures. 2015-11-02 13:26:49 +01:00
Icedream a1f28dab10 Try to fix module-null-sink. 2015-11-02 13:21:27 +01:00
Icedream 811c9e3f52 Add /etc/pulse/default.pa to only load null sinks. 2015-11-02 13:15:40 +01:00
Icedream Jenkins 7849a8dcf0 Update TS3Bot to 2e246a1a98. 2015-11-02 12:48:57 +01:00
Icedream 2e246a1a98 Do not require an isolated GUI anymore.
This commit allows the TS3Bot to boot in an environment where
there is no way to boot an isolated graphical environment. In that case
TS3Bot will try to use the already existing display and the desktop
manager that runs on it already.

This adds some undefined error cases which still need to be found and
fixed, so be warned: This commit is very, VERY experimental!
2015-11-02 12:46:30 +01:00
Icedream ce801fecbb Use custom XDG runtime dirs for better isolation. 2015-11-02 12:45:27 +01:00
Icedream ee9bd9c0fc Delay Blackbox availability handling.
Allow the main code to handle this case instead.
2015-11-02 12:44:12 +01:00
Icedream ae4288d44a Remove left-over explicit API shutdown code.
The code removed in this commit was not removed in the process of
migrating to the new HTTP-server-less code. It causes additional errors
and is generally useless now.
2015-11-02 12:42:37 +01:00
Icedream Jenkins b6a70ebdc5 Delay error that Xvfb is not available so main code can handle it instead. 2015-11-02 12:20:40 +01:00
Icedream Jenkins f650c3296b Make xdotool optional. 2015-11-02 12:18:36 +01:00
Icedream 32608dcc97 Fix wrong command for detecting Node.js version to build correct native addon version for WebChimera.js. 2015-11-02 10:25:49 +01:00
Icedream d50400a1dd Fix faulty startup command. 2015-11-02 09:57:27 +01:00
Icedream e459d1cdc2 Get rid of DBus setup in setup.sh.
See previous commits for detailed information.
2015-11-01 16:54:41 +01:00
Icedream 06b662c12b Removed command to empty /etc/apt/sources.list.d.
Emptying the sources.list.d folder is no longer necessary.
2015-11-01 16:08:43 +01:00
Icedream 12b4c02492 Delete the /tmp/empty folder after useradd. 2015-11-01 16:05:56 +01:00
Icedream 930b7c5bd1 Fix skeleton flag on useradd. 2015-11-01 16:05:33 +01:00
Icedream c0ce150858 Fix "useradd: group 'app' does not exist". 2015-11-01 14:57:03 +01:00
Icedream 0c16608f9c Typo: This is actually node:4.2, not nodejs:4.2. 2015-11-01 01:39:54 +01:00
Icedream dd5cd05de9 Remove sudo call for installing TeamSpeak3.
Installing the files on root will have the same effect as for other calls. All installed files will no longer be writable by the "app" user, however can still be used and, if the +x flag is set, can be executed.
2015-11-01 00:49:37 +01:00
Icedream 755d0d4752 Migrating to base image nodejs:4.2.
- Remove dbus, it's unnecessary and we can no longer run it in the background without the phusion-baseimage's init process.
- Remove setuser calls since that script no longer exists without phusion-baseimage, instead do all as root (will make files read-only for the app user which is more secure anyways).
2015-11-01 00:45:06 +01:00
Icedream 82b38e214c Increasing Docker Hub Network Fail counter. 2015-10-30 00:02:15 +01:00
Icedream 839e176381 Update TS3Bot to 82c19a2196. 2015-10-29 03:09:14 +01:00
Icedream 82c19a2196 Added explicit process.exit after app shutdown.
Since introducing WebChimera.js the bot is no longer shutting down by itself after all services are shut down since the instances that WebChimera.js generates would still be alive after deletion. There is no way to get around this except if WebChimera.js reveals an explicit release function which it doesn't. The only release function gets called before the VM gets killed.
2015-10-29 03:08:44 +01:00
Icedream 6672e0d319 Update TS3Bot to c20462272f. 2015-10-29 02:31:48 +01:00
Icedream c20462272f Stop audio playback when shutting down TS3Bot. 2015-10-29 02:24:11 +01:00
Icedream adeccf6d57 Allow "vol" to display current volume if no arguments were given. 2015-10-29 02:23:53 +01:00
Icedream def8092fa1 Introducing the Docker Hub Network Fails counter for retriggering build of current branch! 2015-10-29 00:25:49 +01:00
Icedream 6469a50f00 Remove ffmpeg and rtmpdump from dependencies. 2015-10-29 00:00:57 +01:00
Icedream 5909ca3cbb Downgrade vlc to 2.1.x from official repositories.
There is currently no APT repository out there that provides an easy way to install a newer version of VLC as library (libvlc) which is needed for WebChimera.js. Since we already have youtube-dl integrated, we no longer need to rely on VLC's functionality to resolve YouTube links, so in this case we can safely downgrade back to 2.1.x to get the library back.
2015-10-28 23:41:36 +01:00
Icedream ca79736310 Revert to old npm_config_wcjs_runtime_version fix and install dependencies as root instead of as app user. 2015-10-28 23:02:59 +01:00
Icedream de8e9274d3 Fix npm_config_wcjs environment variables. 2015-10-28 16:56:08 +01:00
Icedream bd3846dcc9 Allow WebChimera.js native module to build properly. 2015-10-28 00:54:36 +01:00
Icedream 3c9d66fb03 Update TS3Bot to 034d12df07. 2015-10-28 00:25:15 +01:00
Carl Kittelberger 034d12df07 Merge pull request #20 from icedream/impl/webchimera
Use LibVLC via WebChimera.js instead of VLC through its HTTP API.

This closes #17 and fixes #10, finishes two tasks of #2 and actually solves a few additional issues like:

- Not being able to resume playback from a stopped playlist.
- Unclear and buggy definition of volume range.
- Bot just showing "playing next playlist entry" instead of actually showing the title of the next playlist entry.
- Missing "previous" command to go to previous playlist entry.
- Missing "loop" command to loop the playlist. (Now exists in form of "loop on"/"loop off")
- Missing "stop-after" command to stop playback after current track ends.
- A small bug in ts3query.iced that didn't escape line breaks. (Was in use here for "playlist"/"list" commands which got removed in the process.)

Known issues:
- Starting with an empty playlist, adding an entry and then typing "next" will automatically play the first entry. This is not really a bug or even an issue but definitely unexpected behavior that is coming from VLC.
2015-10-28 00:23:55 +01:00
Icedream f3157857c4 Completely remove handler for vlc.onEndReached.
onEndReached does not just trigger the callback at the end of the playlist but actually at the end of each track. This should have been better documented.
2015-10-28 00:21:54 +01:00
Icedream 4d25c2b822 Small fixes for empty playlists. 2015-10-28 00:16:10 +01:00
Icedream 9417e33708 Small fix for "prev" not giving an error when in empty playlist. 2015-10-28 00:14:44 +01:00
Icedream a5a8ae1046 Implement some easy checks for "next" and "prev" commands. 2015-10-28 00:12:50 +01:00
Icedream b238a655b9 This indenting stuff still sometimes doesn't really want to work out I guess... 2015-10-27 23:57:50 +01:00
Icedream 7966bfb056 Playlist display (command "list"/"playlist") can generate too long messages, commenting out for now. 2015-10-27 23:55:54 +01:00
Icedream 18b7d82964 Implement "stop-after" command.
This command allows stopping the playlist after the current playlist item is finished.
2015-10-27 23:54:36 +01:00
Icedream d82721128f Implement "loop" command.
This command allows looping the playlist by just passing the command "loop on". Respectively, "loop off" turns off looping again.
2015-10-27 23:54:01 +01:00
Icedream 0762d6d0bd Fix line breaks and tabs not being properly escaped in ts3query.iced. 2015-10-27 23:38:14 +01:00
Icedream eb00dc2f87 While we're on it, fine-tuning the playlist message. 2015-10-27 23:19:40 +01:00