mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-22 06:02:07 +02:00
remove event query
This commit is contained in:
parent
d6136a77e4
commit
38bc5454b6
1 changed files with 0 additions and 11 deletions
|
@ -46,17 +46,6 @@ const queryList = [
|
||||||
perform: function (agent) {
|
perform: function (agent) {
|
||||||
return pad("Current code:\n`" + agent.coder.current_code +"`");
|
return pad("Current code:\n`" + agent.coder.current_code +"`");
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "!events",
|
|
||||||
description: "Get the bot's events and callbacks.",
|
|
||||||
perform: function (agent) {
|
|
||||||
let res = "Events:";
|
|
||||||
for (let [event, callback, params] of agent.history.events) {
|
|
||||||
res += `\n- ${event} -> ${callback.name}(${params})`;
|
|
||||||
}
|
|
||||||
return pad(res);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue