-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor commands into groups and handler functions
add logging
- Loading branch information
Mike Zrimsek
committed
Nov 2, 2020
1 parent
16cd0f4
commit 4b8e04a
Showing
6 changed files
with
225 additions
and
89 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,30 @@ | ||
const COMMAND_PREFACE = '!'; | ||
|
||
const ADMIN_USER = 'bastulos'; | ||
|
||
const ADMIN_COMMANDS = { | ||
TOGGLE_COMMANDS_ACTIVE: 'active', | ||
RECONNECT_OBS: 'obs' | ||
}; | ||
|
||
const OBS_COMMANDS = { | ||
RESET: 'reset', | ||
TOGGLE_CAM: 'cam', | ||
TOGGLE_MUTE_MIC: 'mic', | ||
CHANGE_OVERLAY_COLOR: 'color', | ||
TOGGLE_AQUA: 'aqua' | ||
}; | ||
|
||
const USER_COMMANDS = { | ||
COMMAND_LIST: 'help', | ||
HELLO: 'hello', | ||
HEART: 'heart' | ||
}; | ||
|
||
module.exports = { | ||
COMMAND_PREFACE, | ||
ADMIN_USER, | ||
ADMIN_COMMANDS, | ||
OBS_COMMANDS, | ||
USER_COMMANDS | ||
}; |
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,9 @@ | ||
const SOURCES = { | ||
WEBCAM: 'Webcam', | ||
MIC: 'Desktop Mic', | ||
AQUA: 'Aqua' | ||
}; | ||
|
||
module.exports = { | ||
SOURCES | ||
}; |
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
Oops, something went wrong.