mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2026-11-22 08:03:12 +09:00
.
This commit is contained in:
1 parent
31bf3b3375
commit
a167374688
4 files changed
+29
-28
No files matched your search
@@ -6,7 +6,7 @@ export class ChatEvent {
|
||||
static type = 'event' as const;
|
||||
static src = 'instance' as const;
|
||||
static dst = 'controller' as const;
|
||||
static plugin = 'ClusterChatSync' as const;
|
||||
static plugin = 'chat_relay' as const;
|
||||
static permission = null;
|
||||
|
||||
constructor(
|
||||
@@ -29,32 +29,32 @@ export class ChatEvent {
|
||||
|
||||
declare module '@clusterio/lib' {
|
||||
interface ControllerConfigFields {
|
||||
'ClusterChatSync.discord_bot_token': string;
|
||||
'ClusterChatSync.datetime_on_message': boolean;
|
||||
'ClusterChatSync.discord_channel_mapping': Record<string, string>;
|
||||
'chat_relay.discord_bot_token': string;
|
||||
'chat_relay.datetime_on_message': boolean;
|
||||
'chat_relay.discord_channel_mapping': Record<string, string>;
|
||||
}
|
||||
}
|
||||
|
||||
export const plugin: lib.PluginDeclaration = {
|
||||
name: 'ClusterChatSync',
|
||||
title: 'Cluster Chat Sync',
|
||||
description: 'One way chat forward to Discord.',
|
||||
name: 'chat_relay',
|
||||
title: 'Chat Relay',
|
||||
description: 'One way chat relay to Discord.',
|
||||
webEntrypoint: './web',
|
||||
instanceEntrypoint: 'dist/node/instance.js',
|
||||
controllerEntrypoint: 'dist/node/controller.js',
|
||||
controllerConfigFields: {
|
||||
'ClusterChatSync.discord_bot_token': {
|
||||
'chat_relay.discord_bot_token': {
|
||||
title: 'Discord Bot Token',
|
||||
description: 'API Token',
|
||||
type: 'string'
|
||||
},
|
||||
'ClusterChatSync.datetime_on_message': {
|
||||
'chat_relay.datetime_on_message': {
|
||||
title: 'Message Datetime',
|
||||
description: 'Append datetime in front',
|
||||
type: 'boolean',
|
||||
initialValue: true
|
||||
},
|
||||
'ClusterChatSync.discord_channel_mapping': {
|
||||
'chat_relay.discord_channel_mapping': {
|
||||
title: 'Discord Channels',
|
||||
description: 'Instance and Discord channel ID relations',
|
||||
type: 'object',
|
||||
|
||||
Reference in new issue
Block a user