mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2025-12-27 03:05:21 +09:00
.
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import { Client, GatewayIntentBits } from 'discord.js';
|
import { Client, GatewayIntentBits } from 'discord.js';
|
||||||
import fetch from 'node-fetch';
|
import fetch from 'node-fetch';
|
||||||
import { BaseControllerPlugin } from '@clusterio/controller';
|
import { BaseControllerPlugin } from '@clusterio/controller';
|
||||||
import { InstanceActionEvent } from './info.ts';
|
import { InstanceActionEvent } from './info';
|
||||||
import { ChatEvent } from './message.ts';
|
import { ChatEvent } from './message';
|
||||||
|
|
||||||
const MAX_DISCORD_MESSAGE_LENGTH = 1950;
|
const MAX_DISCORD_MESSAGE_LENGTH = 1950;
|
||||||
const MIN_CONFIDENCE_SCORE = 10.0;
|
const MIN_CONFIDENCE_SCORE = 10.0;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as lib from "@clusterio/lib";
|
import * as lib from "@clusterio/lib";
|
||||||
import { BaseInstancePlugin } from "@clusterio/host";
|
import { BaseInstancePlugin } from "@clusterio/host";
|
||||||
import { InstanceActionEvent } from "./info.ts";
|
import { InstanceActionEvent } from "./info";
|
||||||
|
|
||||||
type MessageQueueItem = [string, unknown]; // [action, content]
|
type MessageQueueItem = [string, unknown]; // [action, content]
|
||||||
type ControllerEvent = 'connect' | 'disconnect' | string;
|
type ControllerEvent = 'connect' | 'disconnect' | string;
|
||||||
|
|||||||
Reference in New Issue
Block a user