Update examples
This commit is contained in:
parent
183276e857
commit
98286c0da3
@ -1,6 +1,6 @@
|
||||
import type { DependencyContainer } from "tsyringe";
|
||||
|
||||
import { IMod } from "../types/models/external/mod";
|
||||
import type { IMod } from "../types/models/external/mod";
|
||||
import type { DatabaseServer } from "../types/servers/DatabaseServer";
|
||||
|
||||
class Mod implements IMod
|
||||
|
@ -1,9 +1,10 @@
|
||||
import type { DependencyContainer } from "tsyringe";
|
||||
import { IMod } from "../types/models/external/mod";
|
||||
import type { IMod } from "../types/models/external/mod";
|
||||
|
||||
import type { ILogger } from "../types/models/spt/utils/ILogger";
|
||||
import { ConfigServer, ConfigTypes } from "../types/servers/ConfigServer";
|
||||
import { IBotConfig } from "../types/models/spt/config/IBotConfig";
|
||||
import type { ConfigServer } from "../types/servers/ConfigServer";
|
||||
import { ConfigTypes } from "../types/models/enums/ConfigTypes";
|
||||
import type { IBotConfig } from "../types/models/spt/config/IBotConfig";
|
||||
|
||||
class Mod implements IMod
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { DependencyContainer } from "tsyringe";
|
||||
|
||||
import { IMod } from "../types/models/external/mod";
|
||||
import type { IMod } from "../types/models/external/mod";
|
||||
import type { ILogger } from "../types/models/spt/utils/ILogger";
|
||||
|
||||
class Mod implements IMod
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { DependencyContainer } from "tsyringe";
|
||||
|
||||
import { IMod } from "../types/models/external/mod";
|
||||
import type { IMod } from "../types/models/external/mod";
|
||||
import type { ILogger } from "../types/models/spt/utils/ILogger";
|
||||
import {MoreCode } from "./MoreCode";
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { DependencyContainer } from "tsyringe";
|
||||
import { IMod } from "../types/models/external/mod"
|
||||
import { ILogger } from "../types/models/spt/utils/ILogger"
|
||||
import { OnLoadModService } from "../types/services/mod/onLoad/OnLoadModService"
|
||||
import type { IMod } from "../types/models/external/mod"
|
||||
import type { ILogger } from "../types/models/spt/utils/ILogger"
|
||||
import type { OnLoadModService } from "../types/services/mod/onLoad/OnLoadModService"
|
||||
|
||||
class Mod implements IMod
|
||||
{
|
||||
@ -10,7 +10,7 @@ class Mod implements IMod
|
||||
const logger = container.resolve<ILogger>("WinstonLogger");
|
||||
const onLoadModService = container.resolve<OnLoadModService>("OnLoadModService");
|
||||
onLoadModService.registerOnLoad(
|
||||
"MyCustomMod",
|
||||
"MyCustomMod", // route key
|
||||
() => this.customFunctionThatRunsOnLoad(logger),
|
||||
() => "custom-mod" // new route name
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user