Commit Graph
100 Commits
Author SHA1 Message Date
Logan Cusano a5cff9ec7e Check if the returned data from HTTP is valid JSON and parse if so, return the string if not 2023-06-03 15:42:23 -04:00
Logan Cusano 9450b78bd4 Updated all functions to return nodeObjects instead of SQL response 2023-06-03 15:41:29 -04:00
Logan Cusano 5757c51fa3 Added new utils
- isJsonString
    - This can be used to check if a string is valid json before parsing it
- getMembersInRole
    - This can be used to check online/offline/all members in a role
- (unused) SanitizePresetName
2023-06-03 15:40:48 -04:00
Logan Cusano fa91cbc887 Used env var for the listening port 2023-06-03 15:39:16 -04:00
Logan Cusano 7fbaf31335 Updated server intents 2023-06-03 15:38:40 -04:00
Logan Cusano 0280cb5384 Update gitignore 2023-06-03 15:38:24 -04:00
Logan Cusano a298be40d5 Accidentally set the wrong variable for the device ID 2023-06-03 15:32:08 -04:00
Logan Cusano 43d60a748b Remove device ID requirement for API
- The device ID is handled by the .env file
2023-06-03 15:28:46 -04:00
Logan Cusano 51f517cae5 Fixed node '^=' to python '>=' 2023-06-03 15:03:18 -04:00
Logan Cusano 06cb2cc352 Fix logging namespace and windows launch 2023-06-03 15:00:42 -04:00
Logan Cusano 5ce525f2b5 Updating install script #6 2023-06-03 02:51:19 -04:00
Logan Cusano 69fdc63983 Fixing linux bug, added noisegate switch to the call 2023-05-27 21:34:19 -04:00
Logan Cusano a9d3c33af2 Improved client bot logging 2023-05-27 21:17:31 -04:00
Logan Cusano 3719fce86a Update client package.json 2023-05-27 18:25:12 -04:00
Logan Cusano ba927bae8c Implement install and update system for the bot
- LINUX OR WINDOW WSL ONLY
2023-05-27 17:00:57 -04:00
Logan Cusano 7512c8e1df Removing the static ENV var for nearby systems 2023-05-21 15:22:43 -04:00
Logan Cusano c882fb63d3 Moving PDAB to pdab 2023-05-20 15:24:28 -04:00
Logan Cusano 7fc61bbf2e renaming PDAB to pdab to try to fix git issues 2023-05-20 15:20:53 -04:00
Logan Cusano e1c2ce6484 Updating and streamlining radio controller side 2023-05-20 15:18:50 -04:00
Logan Cusano c4070cc420 Initial working radio controller for OP25 2023-05-20 14:31:43 -04:00
Logan Cusano 0f003f907e Discord voice bot handler working 2023-05-20 00:01:12 -04:00
Logan Cusano e7b802839e Initial removal of internal discord bot 2023-05-18 22:53:25 -04:00
Logan Cusano 48999e0d63 Resolved bug in Client with .env config migration 2023-05-07 19:31:53 -04:00
Logan Cusano 2c25be1de7 Removed Embedded discord 2023-05-07 19:31:33 -04:00
Logan Cusano cf04e37f89 Implement example .env files 2023-05-07 04:48:19 -04:00
Logan Cusano d04cc8d5b1 Update gitignore for .env files 2023-05-07 04:43:46 -04:00
Logan Cusano 4662f37a72 Removing real .env files 2023-05-07 04:43:00 -04:00
Logan Cusano be34c5381b Removing real .envs 2023-05-07 04:42:05 -04:00
Logan Cusano ed79403a9b Remove config file for client, moved to .env 2023-05-07 04:40:46 -04:00
Logan Cusano 4e67e21651 Update debugging to log to a file (for running as a service) 2023-05-07 04:00:51 -04:00
Logan Cusano 9b2d0c4bbb Implement Node Monitor Service
- Check in with online nodes every n ms
- Update nodes that do not reply
- Added node object record helper
- Updated mysql wrapper for updating node info to accept bool or number
2023-05-07 02:41:58 -04:00
Logan Cusano f77eb5444a Updating the running config as well as the file 2023-05-06 17:18:21 -04:00
Logan Cusano 177d25e54e Didn't update require statement 2023-05-06 17:16:01 -04:00
Logan Cusano 6880c5952a Resolved bug updating the config 2023-05-06 17:14:30 -04:00
Logan Cusano a14c56b645 Bug with whitespaces 2023-05-06 17:04:17 -04:00
Logan Cusano 35b81758e3 Bug in getting the IP address on windows 2023-05-06 16:44:39 -04:00
Logan Cusano 7871b07113 Improving config handling & startup logic 2023-05-06 16:40:15 -04:00
Logan Cusano 6682d97156 Improve client controller config handling 2023-05-06 16:22:20 -04:00
Logan Cusano 7b2215e9da Remove config files in favor of environment variables 2023-05-06 15:22:28 -04:00
Logan Cusano b0e52920a7 Merge of /utilities 2023-05-06 15:09:19 -04:00
Logan Cusano f3a4f25f85 Initial Emmelia merge 2023-05-06 14:56:51 -04:00
Logan Cusano 4fbed169ab Fixed audio stopping bug
- Added basic noisegate
- Handling more voice connection statuses
2023-05-06 14:09:09 -04:00
Logan Cusano d1a8059cb9 Resolved bug in port-audio implementation; Working Audio WIN32 2023-05-03 22:37:19 -04:00
Logan Cusano 7965a1161d Minor bugfixes in getting Windows IP 2023-04-30 04:51:16 -04:00
Logan Cusano 0cefdba00f Adding Server Checkin
- Update client handler to check IP
- Add checkin to startup
- Add acceptable commands
- Needs linux command
- Needs testing
2023-04-30 04:42:04 -04:00
Logan Cusano 95c99971a2 Revert to Naudiodon and Update Config
- Changed to .env file
2023-04-30 03:52:20 -04:00
Logan Cusano b248e7f40e Update debugging
- Uniform client name
2023-04-30 03:29:38 -04:00
Logan Cusano 546d9e8829 Implement setup and update scripts 2023-03-31 23:45:17 -04:00
Logan Cusano 6b484ddda4 Restore default discord opus library 2023-03-31 22:59:45 -04:00
Logan Cusano 6f98e59b26 Switching to direct encoding (RPi4) 2023-03-30 23:19:38 -04:00
Logan Cusano 999affce93 Remove double buffer and added logging
Would likely work on RPI3 but need to figure out issue with opus and RPi4
2023-03-30 18:09:47 -04:00
Logan Cusano 2a3893b0e7 Update comment 2023-03-30 18:09:04 -04:00
Logan Cusano 1316c109e9 Return after leaving all servers 2023-03-26 21:15:20 -04:00
Logan Cusano c380bb2770 Changed status object VC key to be a boolean 2023-03-26 20:59:15 -04:00
Logan Cusano a20d7cfaec Pushing status object to API instead of checking again 2023-03-26 20:49:39 -04:00
Logan Cusano 07ca9e88e0 Use the correct function to close audio instance 2023-03-26 20:46:21 -04:00
Logan Cusano 5e31346bc9 Improve leaving
- add logging
- fix naming bug
2023-03-26 20:44:48 -04:00
Logan Cusano 6e05dde743 Fix bug in join server 2023-03-26 20:41:58 -04:00
Logan Cusano 82ba506749 Update exports for console commands 2023-03-26 20:40:52 -04:00
Logan Cusano f995cd3578 Fixing imports and resolutions 2023-03-26 20:32:21 -04:00
Logan Cusano c15d8ca5ee Update resolution of botConfig 2023-03-26 20:27:48 -04:00
Logan Cusano 030953f692 Changing method of exporting to use functions locally 2023-03-26 20:26:09 -04:00
Logan Cusano 6c294fe803 Fixed calls for local exported functions configHandler 2023-03-26 20:23:00 -04:00
Logan Cusano e27cfdfdd4 Fixing bugs with imports and obj naming 2023-03-26 20:20:27 -04:00
Logan Cusano cfba6ffa61 Improve logging on guildFromChannel 2023-03-26 20:17:38 -04:00
Logan Cusano f5076d40cc Improve guildFromChannel 2023-03-26 20:14:23 -04:00
Logan Cusano 8d68f87ec0 improve logging to troubleshoot 2023-03-26 20:04:25 -04:00
Logan Cusano 9377edd518 Bugfixing the botController 2023-03-26 17:24:21 -04:00
Logan Cusano 2e8b699339 Fixing small bugs
- Extra imports
- incorrect param placement
2023-03-26 16:49:45 -04:00
Logan Cusano e537ce8778 Update bot to use command controller for interactions and calls 2023-03-26 16:43:51 -04:00
Logan Cusano 95c714f0aa Attempt to fix return bug 2023-03-26 16:12:03 -04:00
Logan Cusano 4a0e5e26de Fixing bug with next in /bot 2023-03-26 15:52:22 -04:00
Logan Cusano 67aa65d60d Updating imports 2023-03-26 15:52:07 -04:00
Logan Cusano 5bbcc3ffcc improved logging for botController status 2023-03-26 15:49:19 -04:00
Logan Cusano ccb42e7fba Added res/req to app.js and fixed naming bug in botcontroller 2023-03-26 15:45:54 -04:00
Logan Cusano 988683ab72 update bug in getting bot status 2023-03-26 15:40:59 -04:00
Logan Cusano 7b821687a9 Update logging and location selection for presets 2023-03-26 15:32:52 -04:00
Logan Cusano fd3de1ede4 Implemented inline error function for server errors 2023-03-26 15:27:23 -04:00
Logan Cusano 444346e2b5 Ignore events if the directory is not there or if it is empty 2023-03-26 15:24:17 -04:00
Logan Cusano eebd058eae Update package to require dotenv 2023-03-26 15:19:10 -04:00
Logan Cusano 3ddf9ea782 Update commands to use the new slash command builder
- Updated app js to remove Emmelia remnants
2023-03-26 15:18:58 -04:00
Logan Cusano d3d62b8d28 Update package to be an app 2023-03-26 15:07:41 -04:00
Logan Cusano b296da629b Initial update to try and fix #1 2023-03-26 15:03:35 -04:00
Logan Cusano 403b533a33 Improve logging for join command 2023-03-26 13:57:42 -04:00
Logan Cusano faec0f2291 Update join command
- Listening to the correct event
- Removed erroneous .start()
2023-03-26 02:27:10 -04:00
Logan Cusano 9a2416e2ff Improve alsa usage
- added command handler to check devices
2023-03-26 02:20:17 -04:00
Logan Cusano a8be6598f2 Fixing async functions 2023-03-26 01:07:30 -04:00
Logan Cusano 184458608d Fix naming bug in audioController 2023-03-26 00:47:39 -04:00
Logan Cusano 7c9be47b64 Improve command logging and update function to async 2023-03-26 00:44:33 -04:00
Logan Cusano d7878535b5 Update command module to follow module syntax 2023-03-26 00:36:19 -04:00
Logan Cusano 2aff7579a8 Fixed bug in name 2023-03-26 00:34:26 -04:00
Logan Cusano d96b8ee05b Initial update to ALSA 2023-03-26 00:03:38 -04:00
Logan Cusano ce072d9287 Major update
- Working client server interactions
- Can create radio config
- Needs radio testing
2023-02-18 20:41:43 -05:00
Logan Cusano c8c75e8b37 Allow the client to interact with the discord bot
- The client can now interact with the bot, this allows the client to offer bot controls via API
- The master server will now be able to instruct a specific client to join a specific channel via channel ID (master server function coming soon)
- Suppress some debug statements to make the output easier to read when mixed in with the client debug output
2022-12-18 20:31:54 -05:00
Logan Cusano 6756a5e632 Added status command to discord bot 2022-12-11 23:00:55 -05:00
Logan Cusano 668c9a9259 Updated readme skeletons 2022-12-11 21:24:17 -05:00
Logan Cusano e5d885cc3e Logging Update
- Changed to uniform logging with the 'debug' module
- Updated all apps
2022-12-11 21:11:29 -05:00
Logan Cusano e403560165 Init High-Level Flowchart
- WIP
2022-12-11 20:12:53 -05:00
Logan Cusano 560ddcbfc6 Resolved JSDoc issue with IOStreamRead 2022-12-11 20:12:26 -05:00
Logan Cusano ca9463856b Functioning audio bot 2022-12-11 20:10:36 -05:00