Compare commits
3 Commits
d04200742d
...
1704537a13
Author | SHA1 | Date | |
---|---|---|---|
1704537a13 | |||
69c5a106b5 | |||
a2966b1475 |
@ -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: "707729833601531935",
|
eval_undefined_emoji: "🅱️",
|
||||||
mi_emoji: "887931046086185060",
|
mi_emoji: "887931046086185060",
|
||||||
ki_emoji: "887935846710394910",
|
ki_emoji: "887935846710394910",
|
||||||
default_channel: "949831184957980722",
|
default_channel: "949831184957980722",
|
||||||
|
@ -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.substr(2).trim());
|
var x = await eval(message.content.substring(2).trim());
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
var x = e.message;
|
var x = e.message;
|
||||||
}
|
}
|
||||||
|
2
index.js
2
index.js
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user