This is a log handler for your bot. It will collect all the logs from your bot and display them in the dashboard’s admin page.
theme: SoftUI({ admin: { logs: { enabled: Boolean, key: String, }, }, });
theme: SoftUI({ admin: { logs: { enabled: true, key: "place your key here!", }, }, });
npm install @dbd-soft-ui/logs
const DLU = require("@dbd-soft-ui/logs"); client.on("ready", () => { DLU.register(client, { dashboard_url: String, key: String, }); }); process.on("unhandledRejection", (reason, p) => { DLU.send(client, { title: String, description: reason, }); });
const DLU = require("@dbd-soft-ui/logs"); client.on("ready", () => { DLU.register(client, { dashboard_url: "https://softui.assistantscenter.com", key: "YOURKEYHERE", }); }); process.on("unhandledRejection", (reason, p) => { DLU.send(client, { title: "Unhandled Rejection", description: reason, }); });
Was this page helpful?