input support

This commit is contained in:
Hri7566 2022-01-18 02:01:58 -05:00
parent a525bcddd2
commit 441a24efcf
14 changed files with 25 additions and 18 deletions

View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bot2022.db/000114.ldb Normal file

Binary file not shown.

BIN
bot2022.db/000116.ldb Normal file

Binary file not shown.

BIN
bot2022.db/000119.ldb Normal file

Binary file not shown.

BIN
bot2022.db/000120.log Normal file

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000098 MANIFEST-000118

View File

@ -1,5 +1,5 @@
2022/01/18-06:10:37.485934 7efc6a7fc700 Recovering log #96 2022/01/18-01:51:07.050 707c Recovering log #117
2022/01/18-06:10:37.499565 7efc6a7fc700 Level-0 table #99: started 2022/01/18-01:51:07.050 707c Level-0 table #119: started
2022/01/18-06:10:37.541748 7efc6a7fc700 Level-0 table #99: 78719 bytes OK 2022/01/18-01:51:07.052 707c Level-0 table #119: 1851 bytes OK
2022/01/18-06:10:37.546091 7efc6a7fc700 Delete type=3 #94 2022/01/18-01:51:07.057 707c Delete type=0 #117
2022/01/18-06:10:37.546162 7efc6a7fc700 Delete type=0 #96 2022/01/18-01:51:07.058 707c Delete type=3 #115

View File

@ -1,12 +1,5 @@
2022/01/18-03:12:47.701352 7f20fc8b3700 Recovering log #93 2022/01/18-01:47:10.058 5334 Recovering log #113
2022/01/18-03:12:47.702620 7f20fc8b3700 Level-0 table #95: started 2022/01/18-01:47:10.058 5334 Level-0 table #116: started
2022/01/18-03:12:47.719172 7f20fc8b3700 Level-0 table #95: 6470 bytes OK 2022/01/18-01:47:10.059 5334 Level-0 table #116: 1573 bytes OK
2022/01/18-03:12:47.726464 7f20fc8b3700 Delete type=0 #93 2022/01/18-01:47:10.064 5334 Delete type=0 #113
2022/01/18-03:12:47.726738 7f20fc8b3700 Delete type=3 #91 2022/01/18-01:47:10.064 5334 Delete type=3 #111
2022/01/18-03:38:11.918482 7f20ded88700 Compacting 2@0 + 1@1 files
2022/01/18-03:38:11.933664 7f20ded88700 Generated table #97@0: 757 keys, 25071 bytes
2022/01/18-03:38:11.933700 7f20ded88700 Compacted 2@0 + 1@1 files => 25071 bytes
2022/01/18-03:38:11.943613 7f20ded88700 compacted to: files[ 0 1 0 0 0 0 0 ]
2022/01/18-03:38:11.943934 7f20ded88700 Delete type=2 #90
2022/01/18-03:38:11.944312 7f20ded88700 Delete type=2 #92
2022/01/18-03:38:11.944434 7f20ded88700 Delete type=2 #95

Binary file not shown.

BIN
bot2022.db/MANIFEST-000118 Normal file

Binary file not shown.

View File

@ -198,3 +198,17 @@ db.setFruits = function(num_fruits) {
gBot.start(process.env.MPPCLONE_TOKEN); gBot.start(process.env.MPPCLONE_TOKEN);
process.stdin.on('data', data => {
let str = data.toString().trim();
if(str.length) {
MPPClient.client.sendArray([{
m: 'a',
message: str
}]);
}
});
process.on('SIGINT', async () => {
await db.close();
});