Compare commits

...

3 Commits

Author SHA1 Message Date
Lamp 1704537a13 fix missing eval emoji 2022-07-17 21:28:15 -07:00
Lamp 69c5a106b5 2022-07-17 21:27:40 -07:00
Lamp a2966b1475 fix [object Object] 2022-07-17 21:26:54 -07:00
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ module.exports = {
inactive_role: "892869309603389500",
verified_role: "949064806030254130",
view_archived_channels_role: "916056534402863125",
eval_undefined_emoji: "707729833601531935",
eval_undefined_emoji: "🅱️",
mi_emoji: "887931046086185060",
ki_emoji: "887935846710394910",
default_channel: "949831184957980722",

View File

@ -9,7 +9,7 @@ client.on("messageCreate", async function (message) {
if (message.content.startsWith("!>")) {
with (message) {
try {
var x = await eval(message.content.substr(2).trim());
var x = await eval(message.content.substring(2).trim());
} catch(e) {
var x = e.message;
}

View File

@ -1,6 +1,6 @@
process.title = "lamp discord bot";
process.on("unhandledRejection", error => {
console.error("Unhandled Rejection:\n" + (error.stack || error));
console.error("Unhandled Rejection:\n", error.stack || error);
});
require("./util"); // global variables set in here