Skip to content

Commit

Permalink
Create a typescript file for the log message event
Browse files Browse the repository at this point in the history
  • Loading branch information
CaveMobster committed Sep 19, 2024
1 parent b187e21 commit c764f27
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"use strict";
import { EffectType } from "../../../types/effects";
import { EffectCategory } from "../../../shared/effect-constants";
import logger from "../../logwrapper";

const { EffectCategory } = require('../../../shared/effect-constants');
const logger = require("../../../backend/logwrapper");

const addFirebotLogMessage = {
const model: EffectType<{
logLevel: "Info" | "Warning" | "Error" | "Debug";
logMessage: string;
}> = {
definition: {
id: "firebot:log-message",
name: "Log Message",
Expand All @@ -12,7 +14,6 @@ const addFirebotLogMessage = {
categories: [EffectCategory.ADVANCED, EffectCategory.SCRIPTING],
dependencies: []
},
globalSettings: {},
optionsTemplate: `
<eos-container header="Message Text">
<p class="muted">Enter the message you would like to write to the Firebot log file.</p>
Expand Down Expand Up @@ -68,4 +69,4 @@ const addFirebotLogMessage = {
}
};

module.exports = addFirebotLogMessage;
module.exports = model;

0 comments on commit c764f27

Please sign in to comment.