Skip to content

Commit 7909f13

Browse files
committed
fix erors
1 parent 21876e9 commit 7909f13

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/os-specific/trolol-linux.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ require('shelljs/global');
22

33
module.exports = {
44

5-
rebecca: function (wait) {
5+
rebecca: function (url,wait) {
66
exec(generateBashCommand('rebecca') + ' ' + url + ' ' + wait);
77
},
88

src/scripts/linux/rebecca.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
22

3-
(sleep $2; xdg-open $1) &
4-
3+
(sleep $2; xdg-open $1) > /dev/null 2>&1
54
echo "Trigger has been set for $2 seconds, trololol.."

src/scripts/linux/steve.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
(sleep $1; xdg-open https://www.youtube.com/watch?v=d_AP3SGMxxM) &
3+
(sleep $1; xdg-open https://www.youtube.com/watch?v=d_AP3SGMxxM) > /dev/null 2>&1
44

55
echo "Trigger has been set for $1 seconds, trololol.."

src/trolol.js

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ module.exports = {
2121

2222
isMac() ? macTrolls.rebecca(url, wait) : linuxTrolls.rebecca(url, wait);
2323
},
24+
steve: function (options) {
25+
var wait = options.wait || 0;
26+
27+
isMac() ? macTrolls.steve(wait) : linuxTrolls.steve(wait);
28+
},
2429

2530
volumeLevel: function (length, options) {
2631
var wait = options.wait || 0;

0 commit comments

Comments
 (0)