Compare commits

..

No commits in common. "1704537a1301a5f7313e24cfc18d50aa3805fbd8" and "d04200742df34d493f88217346543d966e0eb049" have entirely different histories.

3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@ -1,6 +1,6 @@
process.title = "lamp discord bot"; process.title = "lamp discord bot";
process.on("unhandledRejection", error => { 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 require("./util"); // global variables set in here