diff --git a/bot2019.db/000104.log b/bot2019.db/000104.log deleted file mode 100644 index 8d4d636..0000000 Binary files a/bot2019.db/000104.log and /dev/null differ diff --git a/bot2019.db/000106.ldb b/bot2019.db/000106.ldb new file mode 100644 index 0000000..a906ad8 Binary files /dev/null and b/bot2019.db/000106.ldb differ diff --git a/bot2019.db/000107.log b/bot2019.db/000107.log new file mode 100644 index 0000000..e69de29 diff --git a/bot2019.db/CURRENT b/bot2019.db/CURRENT index e333c89..2a5d251 100644 --- a/bot2019.db/CURRENT +++ b/bot2019.db/CURRENT @@ -1 +1 @@ -MANIFEST-000102 +MANIFEST-000105 diff --git a/bot2019.db/LOG b/bot2019.db/LOG index a671fc9..cc83281 100644 --- a/bot2019.db/LOG +++ b/bot2019.db/LOG @@ -1,5 +1,5 @@ -2021/05/12-13:27:51.851 52b8 Recovering log #100 -2021/05/12-13:27:51.851 52b8 Level-0 table #103: started -2021/05/12-13:27:51.866 52b8 Level-0 table #103: 202 bytes OK -2021/05/12-13:27:51.884 52b8 Delete type=0 #100 -2021/05/12-13:27:51.887 52b8 Delete type=3 #98 +2021/05/12-13:31:06.024 5b98 Recovering log #104 +2021/05/12-13:31:06.024 5b98 Level-0 table #106: started +2021/05/12-13:31:06.030 5b98 Level-0 table #106: 546 bytes OK +2021/05/12-13:31:06.046 5b98 Delete type=0 #104 +2021/05/12-13:31:06.049 5b98 Delete type=3 #102 diff --git a/bot2019.db/LOG.old b/bot2019.db/LOG.old index 693e8dd..a671fc9 100644 --- a/bot2019.db/LOG.old +++ b/bot2019.db/LOG.old @@ -1,14 +1,5 @@ -2021/05/12-13:26:55.032 46d4 Recovering log #97 -2021/05/12-13:26:55.032 46d4 Level-0 table #99: started -2021/05/12-13:26:55.039 46d4 Level-0 table #99: 435 bytes OK -2021/05/12-13:26:55.061 46d4 Delete type=0 #97 -2021/05/12-13:26:55.064 46d4 Delete type=3 #95 -2021/05/12-13:26:55.071 2d7c Compacting 4@0 + 1@1 files -2021/05/12-13:26:55.078 2d7c Generated table #101@0: 6 keys, 509 bytes -2021/05/12-13:26:55.078 2d7c Compacted 4@0 + 1@1 files => 509 bytes -2021/05/12-13:26:55.081 2d7c compacted to: files[ 0 1 0 0 0 0 0 ] -2021/05/12-13:26:55.081 2d7c Delete type=2 #88 -2021/05/12-13:26:55.085 2d7c Delete type=2 #90 -2021/05/12-13:26:55.088 2d7c Delete type=2 #93 -2021/05/12-13:26:55.091 2d7c Delete type=2 #96 -2021/05/12-13:26:55.094 2d7c Delete type=2 #99 +2021/05/12-13:27:51.851 52b8 Recovering log #100 +2021/05/12-13:27:51.851 52b8 Level-0 table #103: started +2021/05/12-13:27:51.866 52b8 Level-0 table #103: 202 bytes OK +2021/05/12-13:27:51.884 52b8 Delete type=0 #100 +2021/05/12-13:27:51.887 52b8 Delete type=3 #98 diff --git a/bot2019.db/MANIFEST-000102 b/bot2019.db/MANIFEST-000102 deleted file mode 100644 index f75f3cb..0000000 Binary files a/bot2019.db/MANIFEST-000102 and /dev/null differ diff --git a/bot2019.db/MANIFEST-000105 b/bot2019.db/MANIFEST-000105 new file mode 100644 index 0000000..f60b338 Binary files /dev/null and b/bot2019.db/MANIFEST-000105 differ diff --git a/src/Commands.js b/src/Commands.js index 42c106c..d3ac5b6 100644 --- a/src/Commands.js +++ b/src/Commands.js @@ -1355,4 +1355,16 @@ module.exports = (bot) => { while(int.length < 50) int = (negative ? "\xff" : "0")+int; return int; }; + + bot.addCommand(['tree', 'fruit', 'fruits'], 0, msg => { + db.getLocation(msg.p._id, location => { + if(location === "outside") { + db.getFruits(function(num_fruits) { + sendChat("Friend "+msg.p.name+": " + num_fruits + "."); + }); + } else { + sendChat(rando("You can't even see it from "+location+", let alone any fruit that may theoretically have grown on it.", "", "You don't see a tree "+location+".", "None in sight.")); + } + }); + }, false); }