Skip to content

Commit

Permalink
Chatbot API (#37)
Browse files Browse the repository at this point in the history
* Chatbot API

* Chatbot API updates

---------

Co-authored-by: dansza1 <>
Co-authored-by: spacevoyager03 <[email protected]>
  • Loading branch information
dansza1 and spacevoyager03 authored Dec 20, 2024
1 parent 42b76e7 commit 81a7dba
Show file tree
Hide file tree
Showing 7 changed files with 513 additions and 32 deletions.
89 changes: 83 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"description": "alveus livestream chat bot",
"main": "src/index.js",
"scripts": {
"prettify": "prettier -l --write \"**/*.js\"",
"prettify": "prettier -l --write \"**/*.js\"",
"dev": "cross-env NODE_ENV=development node src/index.js",
"dev2": "nodemon --inspect=0.0.0.0:9229 -L src/index.js",
"dev2": "nodemon --inspect=0.0.0.0:9229 -L src/index.js",
"test": "node src/test.js",
"start": "node src/index.js"
"start": "node src/index.js"
},
"author": "SpaceVoyage",
"license": "UNLICENSED",
Expand All @@ -21,11 +21,15 @@
"@twurple/eventsub": "^5.2.7",
"digest-fetch": "^2.0.1",
"dotenv": "^16.0.3",
"jsonwebtoken": "^9.0.2",
"node-cache": "^5.1.2",
"obs-websocket-js": "^5.0.2",
"obs-websocket-js-27": "npm:obs-websocket-js@^4.0.3",
"on-change": "^4.0.2",
"osc": "^2.4.4",
"unifi-client": "^0.11.0"
"reconnecting-websocket": "^4.4.0",
"unifi-client": "^0.11.0",
"ws": "^8.18.0"
},
"prettier": {
"trailingComma": "all",
Expand All @@ -36,7 +40,7 @@
},
"devDependencies": {
"cross-env": "^7.0.3",
"prettier": "^3.0.1",
"nodemon": "^3.0.1"
"nodemon": "^3.0.1",
"prettier": "^3.0.1"
}
}
4 changes: 2 additions & 2 deletions src/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ const commandPermissionsCamera = {
commandMods: ["testmodcamera", "ptztracking", "ptzirlight", "ptzwake"],
commandOperator: ["ptzhomeold","ptzseta","ptzgetinfo","ptzset", "ptzpan", "ptztilt", "ptzmove", "ptzir", "ptzdry",
"ptzfov", "ptzstop", "ptzsave", "ptzremove", "ptzrename", "ptzcenter", "ptzareazoom", "ptzclick", "ptzdraw",
"ptzspeed", "ptzgetspeed", "ptzspin", "ptzcfocus","ptzplayaudio","ptzstopaudio"],
commandVips: ["ptzhome", "ptzpreset", "ptzzoom","ptzzoomr", "ptzload", "ptzlist", "ptzroam", "ptzroaminfo", "ptzfocus", "ptzgetfocus", "ptzfocusr", "ptzautofocus", "ptzgetcam"],
"ptzspeed", "ptzgetspeed", "ptzspin", "ptzcfocus","ptzplayaudio","ptzstopaudio","ptzfetchimg"],
commandVips: ["ptzhome", "ptzpreset", "ptzzoom","ptzzoomr", "ptzload", "ptzlist", "ptzroam", "ptzroaminfo", "ptzfocus", "ptzgetfocus", "ptzfocusr", "ptzautofocus", "ptzgetcam","apigetperms"],
commandUsers: []
}
//timeRestrictedCommands = timeRestrictedCommands.concat(["ptzclear"]);
Expand Down
Loading

0 comments on commit 81a7dba

Please sign in to comment.