Working on #9
- Can join and leave from voice channels - Will check to make sure that the bot is in a given system or no system before joining - Cleaned up the socket client with wrappers - Added a new module to handle subprocesses for the client - Beginning workings on OP25 handler - Added OP25 config object generator with config exporter
This commit is contained in:
14
client/op25Handler/op25Handler.mjs
Normal file
14
client/op25Handler/op25Handler.mjs
Normal file
@@ -0,0 +1,14 @@
|
||||
let currentSystem = undefined;
|
||||
|
||||
|
||||
export const openOP25 = async (systemName) => {
|
||||
currentSystem = systemName;
|
||||
}
|
||||
|
||||
export const closeOP25 = async () => {
|
||||
currentSystem = undefined;
|
||||
}
|
||||
|
||||
export const getCurrentSystem = async () => {
|
||||
return currentSystem;
|
||||
}
|
||||
Reference in New Issue
Block a user