-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6343430
Showing
6 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Dim oPlayer | ||
Set oPlayer = CreateObject("WMPlayer.OCX") | ||
|
||
' Play audio | ||
oPlayer.URL = "C:\welcome.mp3" | ||
oPlayer.controls.play | ||
While oPlayer.playState <> 1 ' 1 = Stopped | ||
WScript.Sleep 100 | ||
Wend | ||
|
||
' Release the audio file | ||
oPlayer.close |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
const exect = require('child_process').exec; | ||
|
||
const faustaoErrou = function (){ | ||
const linuxcmd = 'paplay faustao-errou.ogg'; | ||
const windowscmd = 'forWindows.vbs'; | ||
|
||
const platform = process.platform; | ||
|
||
if(platform === 'linux'){ | ||
exec(linuxcmd); | ||
} | ||
else if(platform === 'win32'){ | ||
exec(windowscmd); | ||
} | ||
|
||
function exec(cmd){ | ||
exect(cmd, function (error, stdout, stderr) { | ||
console.log(stdout); | ||
}); | ||
} | ||
} | ||
|
||
module.exports = faustaoErrou; | ||
|
||
if (!module.parent) { | ||
faustaoErrou(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "faustao-errou", | ||
"version": "1.0.0", | ||
"description": "Errrrooooouuuuuu!", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "node index.js" | ||
}, | ||
"author": "Bruno Orlandi <[email protected]>", | ||
"license": "MIT" | ||
} |