61 Commits

Author SHA1 Message Date
Logan Cusano
03c940e07c Update PDAB handler
- Move PDAB socket server startup to function
- Updated join server wrapper to start the server before opening the python app
2024-05-05 23:39:05 -04:00
Logan Cusano
5671503594 Omitting OP25 update in the post update for now 2024-05-05 18:29:06 -04:00
Logan Cusano
0fd511cfaf Adding handlers for discord presense 2024-05-05 18:24:59 -04:00
Logan Cusano
a353b9adbb Improvements to tests and from testing
- Moved OP25 start outside of PDAB start callback
- Added more logging
- Set the pdabProcess variable to false when closing the discord client
- Update test variable names
- Added new WIP pdabWrappers tests to test the full wrappers as the client would
2024-04-28 03:21:03 -04:00
Logan Cusano
bf69e93e29 Improve subprocess handler
- Will now output the subprocess console when in dev mode
2024-04-28 03:18:13 -04:00
Logan Cusano
6cae18e70c Update PDAB tests
Some checks failed
DRB Build Tests / drb_build_and_test (push) Failing after 58s
- These new tests will likely not run in actions due to pyaudio
2024-04-27 23:34:30 -04:00
Logan Cusano
e7229322e4 Update pdab handler
- Updated socket close
- Took server outside of the init (server is always running)
- initDiscordBotClient just starts the PDAB process
2024-04-27 23:33:53 -04:00
Logan Cusano
34aa5d17dc Updates to setup from testing
All checks were successful
DRB Build Tests / drb_build_and_test (push) Successful in 52s
2024-04-26 23:46:13 -04:00
Logan Cusano
7b21d4601f #10 Updated setup
Some checks failed
DRB Build Tests / drb_test_setup (push) Failing after 2m34s
DRB Build Tests / drb_build_and_test (push) Successful in 47s
- Re-formatted apt deps. for readability with many packages
- Added libasound-dev to try and build pyaudio
2024-04-21 15:06:59 -04:00
Logan Cusano
d0c2fcc8eb #10 #33 Update client setup and setup test
Some checks failed
DRB Build Tests / drb_test_setup (push) Failing after 2m37s
DRB Build Tests / drb_build_and_test (push) Successful in 54s
- Added a step to run the service after setting it up
- Removed `--system` option from pip3
2024-04-21 14:57:17 -04:00
Logan Cusano
9ba90af464 #10 Update setup.sh
Some checks failed
DRB Build Tests / drb_build_and_test (push) Successful in 52s
DRB Build Tests / drb_test_setup (push) Failing after 2m15s
- Remove systemctl stops as they are not needed and impact testing
2024-04-21 02:43:43 -04:00
Logan Cusano
8ba1ed36d8 #10 Update actions and setup script
Some checks failed
DRB Build Tests / test_setup (push) Failing after 2m5s
DRB Build Tests / drb_build_and_test (push) Successful in 54s
- Removed the step to run the DRB client from socket tests
- Added a testing switch to the install script to return all preset values for all user input
- Added test switch to client setup action step
2024-04-21 02:28:37 -04:00
Logan Cusano
539dbd9518 #10 Removing makefile
Some checks failed
DRB Build Tests / test_setup (push) Failing after 9s
DRB Build Tests / drb_build_and_test (push) Has been cancelled
The makefile for the client is not as useful as a install script

- Updated test action to install client deps.
- Added new action to specifically test the install script for client
2024-04-21 02:13:35 -04:00
Logan Cusano
560ed401cf #10 Updated Makefile
Some checks failed
DRB Build Tests / drb_build_and_test (push) Failing after 2m39s
- Updated sed command in setup_pulse_audio
2024-04-21 01:38:45 -04:00
Logan Cusano
7b91667414 #10 Update Makefiles
Some checks failed
DRB Build Tests / drb_build_and_test (push) Failing after 2m26s
- Removed the client_dir var as it's not needed
2024-04-21 01:31:04 -04:00
Logan Cusano
fd9b6d9d1c #10 Updating build test to remove threads and sudo
Some checks failed
DRB Build Tests / drb_build_and_test (push) Failing after 29s
2024-04-21 01:26:44 -04:00
Logan Cusano
3aae427249 #10 Updating makefile to include sudo
Some checks failed
DRB Build Tests / drb_build_and_test (push) Has been cancelled
2024-04-21 01:24:24 -04:00
Logan Cusano
bc4c8f72d0 #10 Update makefile
Some checks failed
DRB Build Tests / drb_build_and_test (push) Failing after 2m27s
- Working on issue running OP25 install script
2024-04-21 01:14:40 -04:00
Logan Cusano
61a616ec6b #10 Updates
Some checks failed
DRB Client Makefile Build Test / build (push) Failing after 54s
DRB Socket Communication Tests / test (push) Successful in 1m58s
- Added check for updates at boot
- Updated post update script to update OP25 and PDAB
- Added initial makefile to replace the `setup.sh`
- Added new test to make sure makefile builds
- Renamed socket tests
2024-04-21 00:52:15 -04:00
Logan Cusano
d7b7b04f78 Update PDAB Wrappers
All checks were successful
Run Discord Radio Bot v3 Tests / test (push) Successful in 46s
- Close the socket server when there are no active connections
2024-04-14 23:59:04 -04:00
Logan Cusano
2c9383824e Updated client setup script
- Added pip
- updated branch for op25
- Improved the python deps install
2024-04-14 23:46:43 -04:00
Logan Cusano
cebd316939 Fixed bug if statement
All checks were successful
Run Discord Radio Bot v3 Tests / test (push) Successful in 46s
2024-04-14 20:43:06 -04:00
Logan Cusano
af19db8e17 Add PDAB setup
All checks were successful
Run Discord Radio Bot v3 Tests / test (push) Successful in 53s
2024-04-14 20:41:22 -04:00
Logan Cusano
45b9a62c64 Removed dev comments stopping OP25
All checks were successful
Run Discord Radio Bot v3 Tests / test (push) Successful in 48s
2024-04-14 16:39:24 -04:00
Logan Cusano
ac82b0efd0 Removed hardcoded IDs in test 2024-04-14 15:51:31 -04:00
Logan Cusano
854c73cc4e Testing updates
All checks were successful
Client Tests / test (push) Successful in 1m30s
Run Socket Server Tests / test (push) Successful in 1m15s
- Added client tests, started with the pdabHandler interactions
- Updated caps in socket server tests
- Updated pdabHandler with uniform 'guild_id'
- Updated pdabHandler with production check to launch or not launch the python client
-
2024-04-14 15:47:29 -04:00
Logan Cusano
62c00eec09 Implementing disconnection of discord client 2024-04-06 01:02:42 -04:00
Logan Cusano
ea63abcb93 Update the subprocess handler to take a CWD 2024-04-06 01:01:36 -04:00
Logan Cusano
c78ed89707 Initial implementation of python client with socket.io IPC 2024-04-03 02:24:21 -04:00
Logan Cusano
64edc612df #10
- Implemented a new param for launching client processes to wait for the process to close
- Waiting for the bash script to finish before restarting the application
2024-03-24 19:09:17 -04:00
Logan Cusano
ed04e24fc6 #10 Added console output for post-update script 2024-03-24 19:02:49 -04:00
Logan Cusano
3e50f0b2f3 Finalizing #10
- Added a stash command to stash any found changs
- Added a post-update script (needs testing)
2024-03-24 18:55:29 -04:00
Logan Cusano
e62be27f74 #16 missed another reference 2024-03-24 03:03:47 -04:00
Logan Cusano
96b32d1241 #16 fixed bug on client when checking username 2024-03-24 03:01:33 -04:00
Logan Cusano
7983a45281 Improve service handler 2024-03-24 02:46:16 -04:00
Logan Cusano
fea7ed2c7f #16
- Server can now choose from IDs in the DB
- Implemented an active system to disable some IDs from being used
2024-03-24 02:45:34 -04:00
Logan Cusano
b209a672c6 Improve the client setup script 2024-03-10 03:22:04 -04:00
Logan Cusano
7983670c81 #18
- When grabbing the device from the CLI, we now add it to a new var
- We then add new var as the device so we can specify the group
- Updated the default UDP port in the audio device for OP25 config
2024-03-10 00:03:30 -05:00
Logan Cusano
73da7ee2f4 #13 Finializing fix
- Updated the regex to double exclude '\'
- Updated extractValue function to return the full result
2024-03-09 17:22:52 -05:00
Logan Cusano
6ab0ec6d6f Finishing #15
- setup script needs to set the permissions on the .env file explicitly
2024-03-09 15:15:16 -05:00
Logan Cusano
84aa4c5aff #15
- Changed the regex expression to not require a value after the key
2024-03-09 15:09:42 -05:00
Logan Cusano
32f827fe5e Fixing a bug in boot
- When booting for the first time, the generated NUID was saved to the wrong key
2024-03-08 23:36:02 -05:00
Logan Cusano
d48d1155cb #10 resolving bug in variable assignment 2024-03-08 22:09:22 -05:00
Logan Cusano
3cb53605c7 Working on #13
- Running the 'pactl' command
- Using regex on the output to find the active running device
2024-03-08 21:58:27 -05:00
Logan Cusano
b7d4cbf46c Adding to the setup script #10
- Change permissions on the whole project dir
- Add an echo for better visibility
2024-03-08 21:55:24 -05:00
Logan Cusano
c46b7c6ea6 Modified the self updater to reset any local changes when updating #10 2024-03-03 22:02:27 -05:00
Logan Cusano
36c0ec8b13 Update DAB to include dynamic settings
- Settings will now get the active device(s) available on Linux (UNTESTED)
- Added CLI handler for interacting with the CLI
- Added wrapper for extracting values with regex
-
2024-03-03 21:29:50 -05:00
Logan Cusano
79574e188d Update bug in the startService script
- Was writing output to a file, thought it would write to actual stderr
2024-03-03 21:27:30 -05:00
Logan Cusano
d0a75dc557 Fixing bug in client boot that ignored 0
- Added check for string '0' and int 0
2024-03-03 20:54:47 -05:00
Logan Cusano
6b156b441a Updating client package with new modules #10 2024-03-03 20:54:00 -05:00