Commit graph

25 commits

Author SHA1 Message Date
Alt
a665688011
Merge pull request #25 from LJNeon/fortify-messages
Fortify message handler
2022-10-03 17:35:09 +02:00
LJNeon
0657fac98d
Better error handling 2022-10-02 18:52:38 -07:00
LJNeon
86c6a3ad35
Fortify message handler 2022-10-02 16:28:58 -07:00
LJNeon
fb0f0040a5
Improve error message 2022-10-01 17:08:34 -07:00
LJNeon
d7d953c425
Create synchronized folder if necessary 2022-10-01 16:31:49 -07:00
Heinous Tugboat
bc39f10a8e Prettier pass 2022-10-01 10:54:26 -04:00
Heinous Tugboat
778b8d492a Converts JS files to TS
Closes bitburner-official/bitburner-filesync#12
2022-09-30 20:17:00 -04:00
Zoë Hoekstra
207e4d521e
Fix filenames deleted file api calls 2022-09-29 20:49:17 +02:00
James
798c240e70
Fix deleteFile events
Previously when deleting a file, I received:
```json
{ jsonrpc: '2.0', error: 'Message misses parameters', id: 1 }
```

This was due to the missing `server` parameter that is required when sending a `deleteFile` event. This PR just adds in the missing parameter.
2022-09-28 16:29:08 -04:00
Zoë Hoekstra
09bfd00fc4
Patch to get around Bitburner's filehandling 2022-09-19 20:02:05 +02:00
Alt
b89909937b
Add missing import 2022-08-28 22:15:58 +02:00
Alt
8f47520a63
Add arg parameters to allow settings through CLI 2022-08-28 18:12:09 +02:00
RyanHx
e05a445544 Descriptive config name 2022-08-28 15:55:57 +01:00
RyanHx
e37990afab No need for extra event if push all 2022-08-28 15:54:42 +01:00
RyanHx
53a872a11b Emit MessageSend for every file 2022-08-28 15:12:36 +01:00
RyanHx
64761fa9d7 Add pushOnCon option 2022-08-28 15:12:17 +01:00
RyanHx
c1c9847427 Prevent watch initialization before config 2022-08-28 02:25:40 +01:00
RyanHx
82269a64b9 Reference correct variable 2022-08-28 02:25:40 +01:00
RyanHx
95563abda0 Fix undefined request crash, pass paths directly 2022-08-28 02:25:40 +01:00
Zoë Hoekstra
b7c0761822
Automatic formatting pass 2022-08-25 23:57:49 +02:00
Zoë Hoekstra
880cc5be51
Synchronize missing files on start (rq #4044)
Synchronize files that the game doesn't have yet, skip any files it
knows about already.
Requires Bitburner PR #4044: https://github.com/danielyxie/bitburner/pull/4044
2022-08-25 23:46:43 +02:00
Zoë Hoekstra
ccf38f2df4
Fix folder watching and push message 2022-08-25 19:52:43 +02:00
Zoë Hoekstra
363fa300c2
Allow recursive watching of folders 2022-08-25 18:56:24 +02:00
Zoë Hoekstra
10f274ed52
🦭 Seal of approval for regular use 2022-08-24 15:50:01 +02:00
Zoë Hoekstra
7c571687bf
Initial version 2022-08-23 20:00:48 +02:00