This commit is contained in:
Hri7566 2021-05-12 13:31:14 -04:00
commit 803f0749bf
9 changed files with 23 additions and 20 deletions

Binary file not shown.

BIN
bot2019.db/000106.ldb Normal file

Binary file not shown.

0
bot2019.db/000107.log Normal file
View File

View File

@ -1 +1 @@
MANIFEST-000102 MANIFEST-000105

View File

@ -1,5 +1,5 @@
2021/05/12-13:27:51.851 52b8 Recovering log #100 2021/05/12-13:31:06.024 5b98 Recovering log #104
2021/05/12-13:27:51.851 52b8 Level-0 table #103: started 2021/05/12-13:31:06.024 5b98 Level-0 table #106: started
2021/05/12-13:27:51.866 52b8 Level-0 table #103: 202 bytes OK 2021/05/12-13:31:06.030 5b98 Level-0 table #106: 546 bytes OK
2021/05/12-13:27:51.884 52b8 Delete type=0 #100 2021/05/12-13:31:06.046 5b98 Delete type=0 #104
2021/05/12-13:27:51.887 52b8 Delete type=3 #98 2021/05/12-13:31:06.049 5b98 Delete type=3 #102

View File

@ -1,14 +1,5 @@
2021/05/12-13:26:55.032 46d4 Recovering log #97 2021/05/12-13:27:51.851 52b8 Recovering log #100
2021/05/12-13:26:55.032 46d4 Level-0 table #99: started 2021/05/12-13:27:51.851 52b8 Level-0 table #103: started
2021/05/12-13:26:55.039 46d4 Level-0 table #99: 435 bytes OK 2021/05/12-13:27:51.866 52b8 Level-0 table #103: 202 bytes OK
2021/05/12-13:26:55.061 46d4 Delete type=0 #97 2021/05/12-13:27:51.884 52b8 Delete type=0 #100
2021/05/12-13:26:55.064 46d4 Delete type=3 #95 2021/05/12-13:27:51.887 52b8 Delete type=3 #98
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

Binary file not shown.

BIN
bot2019.db/MANIFEST-000105 Normal file

Binary file not shown.

View File

@ -1355,4 +1355,16 @@ module.exports = (bot) => {
while(int.length < 50) int = (negative ? "\xff" : "0")+int; while(int.length < 50) int = (negative ? "\xff" : "0")+int;
return 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.", "<Schrödinger's fruit>", "You don't see a tree "+location+".", "None in sight."));
}
});
}, false);
} }