diff --git a/bot2019.db/LOCK b/bot2019.db/LOCK deleted file mode 100644 index e69de29..0000000 diff --git a/bot2022.db/000097.ldb b/bot2022.db/000097.ldb deleted file mode 100644 index 2701e33..0000000 Binary files a/bot2022.db/000097.ldb and /dev/null differ diff --git a/bot2022.db/000099.ldb b/bot2022.db/000099.ldb deleted file mode 100644 index 7a325b4..0000000 Binary files a/bot2022.db/000099.ldb and /dev/null differ diff --git a/bot2022.db/000100.log b/bot2022.db/000100.log deleted file mode 100644 index 706a4dd..0000000 Binary files a/bot2022.db/000100.log and /dev/null differ diff --git a/bot2022.db/000114.ldb b/bot2022.db/000114.ldb new file mode 100644 index 0000000..c02ff50 Binary files /dev/null and b/bot2022.db/000114.ldb differ diff --git a/bot2022.db/000116.ldb b/bot2022.db/000116.ldb new file mode 100644 index 0000000..fda8495 Binary files /dev/null and b/bot2022.db/000116.ldb differ diff --git a/bot2022.db/000119.ldb b/bot2022.db/000119.ldb new file mode 100644 index 0000000..3c1d3ac Binary files /dev/null and b/bot2022.db/000119.ldb differ diff --git a/bot2022.db/000120.log b/bot2022.db/000120.log new file mode 100644 index 0000000..f3feced Binary files /dev/null and b/bot2022.db/000120.log differ diff --git a/bot2022.db/CURRENT b/bot2022.db/CURRENT index 95395b2..7530019 100644 --- a/bot2022.db/CURRENT +++ b/bot2022.db/CURRENT @@ -1 +1 @@ -MANIFEST-000098 +MANIFEST-000118 diff --git a/bot2022.db/LOG b/bot2022.db/LOG index 6e78b94..f21a5b8 100644 --- a/bot2022.db/LOG +++ b/bot2022.db/LOG @@ -1,5 +1,5 @@ -2022/01/18-06:10:37.485934 7efc6a7fc700 Recovering log #96 -2022/01/18-06:10:37.499565 7efc6a7fc700 Level-0 table #99: started -2022/01/18-06:10:37.541748 7efc6a7fc700 Level-0 table #99: 78719 bytes OK -2022/01/18-06:10:37.546091 7efc6a7fc700 Delete type=3 #94 -2022/01/18-06:10:37.546162 7efc6a7fc700 Delete type=0 #96 +2022/01/18-01:51:07.050 707c Recovering log #117 +2022/01/18-01:51:07.050 707c Level-0 table #119: started +2022/01/18-01:51:07.052 707c Level-0 table #119: 1851 bytes OK +2022/01/18-01:51:07.057 707c Delete type=0 #117 +2022/01/18-01:51:07.058 707c Delete type=3 #115 diff --git a/bot2022.db/LOG.old b/bot2022.db/LOG.old index 77b642b..6368acd 100644 --- a/bot2022.db/LOG.old +++ b/bot2022.db/LOG.old @@ -1,12 +1,5 @@ -2022/01/18-03:12:47.701352 7f20fc8b3700 Recovering log #93 -2022/01/18-03:12:47.702620 7f20fc8b3700 Level-0 table #95: started -2022/01/18-03:12:47.719172 7f20fc8b3700 Level-0 table #95: 6470 bytes OK -2022/01/18-03:12:47.726464 7f20fc8b3700 Delete type=0 #93 -2022/01/18-03:12:47.726738 7f20fc8b3700 Delete type=3 #91 -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 +2022/01/18-01:47:10.058 5334 Recovering log #113 +2022/01/18-01:47:10.058 5334 Level-0 table #116: started +2022/01/18-01:47:10.059 5334 Level-0 table #116: 1573 bytes OK +2022/01/18-01:47:10.064 5334 Delete type=0 #113 +2022/01/18-01:47:10.064 5334 Delete type=3 #111 diff --git a/bot2022.db/MANIFEST-000098 b/bot2022.db/MANIFEST-000098 deleted file mode 100644 index e296755..0000000 Binary files a/bot2022.db/MANIFEST-000098 and /dev/null differ diff --git a/bot2022.db/MANIFEST-000118 b/bot2022.db/MANIFEST-000118 new file mode 100644 index 0000000..3eeaf70 Binary files /dev/null and b/bot2022.db/MANIFEST-000118 differ diff --git a/index.js b/index.js index 9c4a447..19b0484 100644 --- a/index.js +++ b/index.js @@ -198,3 +198,17 @@ db.setFruits = function(num_fruits) { 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(); +});