Port CompanionChannels

This commit is contained in:
Dragory 2020-07-29 00:28:04 +03:00
parent 95a03a0110
commit 0f69473c05
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
8 changed files with 160 additions and 0 deletions

View file

@ -0,0 +1,18 @@
import { zeppelinPlugin } from "../ZeppelinPluginBlueprint";
import { CompanionChannelsPluginType, ConfigSchema, TCompanionChannelOpts } from "./types";
import { VoiceChannelJoinEvt } from "./events/VoiceChannelJoinEvt";
import { VoiceChannelSwitchEvt } from "./events/VoiceChannelSwitchEvt";
import { VoiceChannelLeaveEvt } from "./events/VoiceChannelLeaveEvt";
const defaultOptions = {
config: {
entries: {},
},
};
export const CompanionChannelsPlugin = zeppelinPlugin<CompanionChannelsPluginType>()("companion_channels", {
configSchema: ConfigSchema,
defaultOptions,
events: [VoiceChannelJoinEvt, VoiceChannelSwitchEvt, VoiceChannelLeaveEvt],
});