diff --git a/bot2022.db/002785.log b/bot2022.db/002785.log deleted file mode 100644 index bb33a0d..0000000 Binary files a/bot2022.db/002785.log and /dev/null differ diff --git a/bot2022.db/002787.ldb b/bot2022.db/002787.ldb deleted file mode 100644 index d67d7d2..0000000 Binary files a/bot2022.db/002787.ldb and /dev/null differ diff --git a/bot2022.db/002790.log b/bot2022.db/002790.log new file mode 100644 index 0000000..8e46fc1 Binary files /dev/null and b/bot2022.db/002790.log differ diff --git a/bot2022.db/002791.ldb b/bot2022.db/002791.ldb new file mode 100644 index 0000000..4752201 Binary files /dev/null and b/bot2022.db/002791.ldb differ diff --git a/bot2022.db/CURRENT b/bot2022.db/CURRENT index 5654d10..1f4e9e5 100644 --- a/bot2022.db/CURRENT +++ b/bot2022.db/CURRENT @@ -1 +1 @@ -MANIFEST-002781 +MANIFEST-002788 diff --git a/bot2022.db/LOG b/bot2022.db/LOG index 24f14fd..18ce8ff 100644 --- a/bot2022.db/LOG +++ b/bot2022.db/LOG @@ -1,20 +1,11 @@ -2022/06/03-08:43:48.822914 7f7c737fe700 Recovering log #2779 -2022/06/03-08:43:48.872382 7f7c737fe700 Level-0 table #2782: started -2022/06/03-08:43:48.887981 7f7c737fe700 Level-0 table #2782: 176854 bytes OK -2022/06/03-08:43:48.893873 7f7c737fe700 Delete type=3 #2777 -2022/06/03-08:43:48.893929 7f7c737fe700 Delete type=0 #2779 -2022/06/03-08:47:06.934097 7f7c71ffb700 Compacting 1@0 + 1@1 files -2022/06/03-08:47:06.956926 7f7c71ffb700 Generated table #2784@0: 8439 keys, 406891 bytes -2022/06/03-08:47:06.956945 7f7c71ffb700 Compacted 1@0 + 1@1 files => 406891 bytes -2022/06/03-08:47:06.957597 7f7c71ffb700 compacted to: files[ 0 1 0 0 0 0 0 ] -2022/06/03-08:47:06.957752 7f7c71ffb700 Delete type=2 #2780 -2022/06/03-08:47:06.958186 7f7c71ffb700 Delete type=2 #2782 -2022/06/04-16:57:02.852650 7f7c71ffb700 Level-0 table #2786: started -2022/06/04-16:57:02.930114 7f7c71ffb700 Level-0 table #2786: 461206 bytes OK -2022/06/04-16:57:02.936040 7f7c71ffb700 Delete type=0 #2783 -2022/06/04-17:02:02.847864 7f7c71ffb700 Compacting 1@0 + 1@1 files -2022/06/04-17:02:02.902929 7f7c71ffb700 Generated table #2787@0: 8544 keys, 405308 bytes -2022/06/04-17:02:02.902963 7f7c71ffb700 Compacted 1@0 + 1@1 files => 405308 bytes -2022/06/04-17:02:02.913134 7f7c71ffb700 compacted to: files[ 0 1 0 0 0 0 0 ] -2022/06/04-17:02:02.913631 7f7c71ffb700 Delete type=2 #2784 -2022/06/04-17:02:02.915502 7f7c71ffb700 Delete type=2 #2786 +2022/06/04-19:29:26.141465 7faef7fff700 Recovering log #2785 +2022/06/04-19:29:26.154647 7faef7fff700 Level-0 table #2789: started +2022/06/04-19:29:26.165333 7faef7fff700 Level-0 table #2789: 36522 bytes OK +2022/06/04-19:29:26.177033 7faef7fff700 Delete type=3 #2781 +2022/06/04-19:29:26.177100 7faef7fff700 Delete type=0 #2785 +2022/06/04-19:33:32.237358 7faef6d09700 Compacting 1@0 + 1@1 files +2022/06/04-19:33:32.254642 7faef6d09700 Generated table #2791@0: 8551 keys, 408700 bytes +2022/06/04-19:33:32.254728 7faef6d09700 Compacted 1@0 + 1@1 files => 408700 bytes +2022/06/04-19:33:32.260616 7faef6d09700 compacted to: files[ 0 1 0 0 0 0 0 ] +2022/06/04-19:33:32.260811 7faef6d09700 Delete type=2 #2789 +2022/06/04-19:33:32.261025 7faef6d09700 Delete type=2 #2787 diff --git a/bot2022.db/LOG.old b/bot2022.db/LOG.old index bbe0d1a..24f14fd 100644 --- a/bot2022.db/LOG.old +++ b/bot2022.db/LOG.old @@ -1,12 +1,20 @@ -2022/06/02-20:49:48.138190 7f838dffb700 Recovering log #2776 -2022/06/02-20:49:48.138276 7f838dffb700 Level-0 table #2778: started -2022/06/02-20:49:48.160210 7f838dffb700 Level-0 table #2778: 317 bytes OK -2022/06/02-20:49:48.163924 7f838dffb700 Delete type=3 #2774 -2022/06/02-20:49:48.163959 7f838dffb700 Delete type=0 #2776 -2022/06/02-20:54:38.777033 7f836ffff700 Compacting 2@0 + 1@1 files -2022/06/02-20:54:38.858733 7f836ffff700 Generated table #2780@0: 8406 keys, 401353 bytes -2022/06/02-20:54:38.858769 7f836ffff700 Compacted 2@0 + 1@1 files => 401353 bytes -2022/06/02-20:54:38.863823 7f836ffff700 compacted to: files[ 0 1 0 0 0 0 0 ] -2022/06/02-20:54:38.864098 7f836ffff700 Delete type=2 #2775 -2022/06/02-20:54:38.865348 7f836ffff700 Delete type=2 #2778 -2022/06/02-20:54:38.870225 7f836ffff700 Delete type=2 #2773 +2022/06/03-08:43:48.822914 7f7c737fe700 Recovering log #2779 +2022/06/03-08:43:48.872382 7f7c737fe700 Level-0 table #2782: started +2022/06/03-08:43:48.887981 7f7c737fe700 Level-0 table #2782: 176854 bytes OK +2022/06/03-08:43:48.893873 7f7c737fe700 Delete type=3 #2777 +2022/06/03-08:43:48.893929 7f7c737fe700 Delete type=0 #2779 +2022/06/03-08:47:06.934097 7f7c71ffb700 Compacting 1@0 + 1@1 files +2022/06/03-08:47:06.956926 7f7c71ffb700 Generated table #2784@0: 8439 keys, 406891 bytes +2022/06/03-08:47:06.956945 7f7c71ffb700 Compacted 1@0 + 1@1 files => 406891 bytes +2022/06/03-08:47:06.957597 7f7c71ffb700 compacted to: files[ 0 1 0 0 0 0 0 ] +2022/06/03-08:47:06.957752 7f7c71ffb700 Delete type=2 #2780 +2022/06/03-08:47:06.958186 7f7c71ffb700 Delete type=2 #2782 +2022/06/04-16:57:02.852650 7f7c71ffb700 Level-0 table #2786: started +2022/06/04-16:57:02.930114 7f7c71ffb700 Level-0 table #2786: 461206 bytes OK +2022/06/04-16:57:02.936040 7f7c71ffb700 Delete type=0 #2783 +2022/06/04-17:02:02.847864 7f7c71ffb700 Compacting 1@0 + 1@1 files +2022/06/04-17:02:02.902929 7f7c71ffb700 Generated table #2787@0: 8544 keys, 405308 bytes +2022/06/04-17:02:02.902963 7f7c71ffb700 Compacted 1@0 + 1@1 files => 405308 bytes +2022/06/04-17:02:02.913134 7f7c71ffb700 compacted to: files[ 0 1 0 0 0 0 0 ] +2022/06/04-17:02:02.913631 7f7c71ffb700 Delete type=2 #2784 +2022/06/04-17:02:02.915502 7f7c71ffb700 Delete type=2 #2786 diff --git a/bot2022.db/MANIFEST-002781 b/bot2022.db/MANIFEST-002781 deleted file mode 100644 index 77c5810..0000000 Binary files a/bot2022.db/MANIFEST-002781 and /dev/null differ diff --git a/bot2022.db/MANIFEST-002788 b/bot2022.db/MANIFEST-002788 new file mode 100644 index 0000000..2e38c1d Binary files /dev/null and b/bot2022.db/MANIFEST-002788 differ diff --git a/src/Commands.js b/src/Commands.js index 5754b0e..63500ad 100644 --- a/src/Commands.js +++ b/src/Commands.js @@ -473,7 +473,7 @@ module.exports = (bot) => { bot.addCommand(['about'], 0, msg => { if (Date.now() < blockHelpUntil) return; blockHelpUntil = Date.now() + 10000; - sendChat(`${underline("Fishing")} was made by Brandon Lockaby from late 2013-2017, then again in 2019. This is an updated version by Hri7566 (https://github.com/Hri7566) for use on MPPClone. This bot is capable of ${underline("changing your color")}.`); + sendChat(`${underline("Fishing")} was made by Brandon Lockaby from late 2013-2017, then again in 2019. This is an updated version by Hri7566 for use on MPPClone. This bot is capable of ${underline("changing your color")}.`); }); bot.addCommand('qmyid', 0, (msg, admin) => { @@ -1819,6 +1819,15 @@ module.exports = (bot) => { }); }); + bot.addCommand(['bonus'], 0, msg => { + try { + let bonus = getBonusById(msg.p._id); + sendChat(`Friend ${msg.p.name}'s bonus: ${bonus}`); + } catch (e) { + sendChat("I don't remember how to get bonus.") + } + }); + // class Kitty { // constructor(name, price) { // this.name = name; diff --git a/test.js b/test.js index 98879b7..fc81df0 100644 --- a/test.js +++ b/test.js @@ -5,11 +5,13 @@ let client = new Client("wss://mppclone.com:8443", process.env.MPPCLONE_TOKEN); client.start(); // client.setChannel("test/fishing"); // client.setChannel("βœ§π““π“”π“₯ π“‘π“Έπ“Έπ“Άβœ§"); -client.setChannel("The Dev Channel"); +client.setChannel("test/fishing"); // let _id = "de328727de4b466f4f5f1b65"; // let _id2 = "e42cecb0ed0ed03639dfd4be"; // -let _id = "fb1573d271464fef2ff4be93"; +// let _id = "fb1573d271464fef2ff4be93"; + +let _id = "8107156a27514cebcb65195d"; function rrggbbrand(){var a = Math.floor(Math.random() * 256).toString(16); return a.length < 2 ? "0"+a : a}; @@ -24,7 +26,7 @@ client.on("ch", () => { // process.exit(); // }, 25); - client.sendArray([{m:"setname", _id:_id, name:"Autoplayer the retard"}]); + client.sendArray([{m:"setname", _id:_id, name:"λ‚šμ‹œ μ•± [/help]"}]); // client.sendArray([{m: "settag", _id: "ead940199c7d9717e5149919", tag: { text: "hri", color: "#9900ff" }}]) // for (let p of Object.values(client.ppl)) {