Compare commits

..

No commits in common. "f7490c119091a5cb206fcbb5388ba0f2b20ac375" and "4327a0f4b3755bca5fcfa3d277d715b3f2098c0e" have entirely different histories.

3 changed files with 2 additions and 21 deletions

View File

@ -12,7 +12,6 @@ import { inventory } from "./inventory/inventory";
import { eat } from "./inventory/eat"; import { eat } from "./inventory/eat";
import { sack } from "./inventory/sack"; import { sack } from "./inventory/sack";
import { reel } from "./fishing/reel"; import { reel } from "./fishing/reel";
import { memory } from "./util/mem";
interface ICommandGroup { interface ICommandGroup {
id: string; id: string;
@ -49,7 +48,7 @@ commandGroups.push(inventoryGroup);
const utilGroup: ICommandGroup = { const utilGroup: ICommandGroup = {
id: "util", id: "util",
displayName: "Utility", displayName: "Utility",
commands: [data, setcolor, memory] commands: [data, setcolor]
}; };
commandGroups.push(utilGroup); commandGroups.push(utilGroup);

View File

@ -6,7 +6,7 @@ import { CosmicColor } from "@util/CosmicColor";
export const eat = new Command( export const eat = new Command(
"eat", "eat",
["eat", "oot"], ["eat"],
"Eat literally anything in your inventory", "Eat literally anything in your inventory",
"eat <something>", "eat <something>",
"command.inventory.eat", "command.inventory.eat",

View File

@ -1,18 +0,0 @@
import Command from "@server/commands/Command";
export const memory = new Command(
"memory",
["memory", "mem"],
"View memory usage",
"memory",
"command.util.memory",
async () => {
const mem = process.memoryUsage();
return `Memory: ${(mem.heapUsed / 1024 / 1024).toFixed(2)}m / ${(
mem.heapTotal /
1024 /
1024
).toFixed(2)}m / ${(mem.rss / 1024 / 1024).toFixed(2)}m`;
},
false
);