Skip to content

Commit

Permalink
feat(channels): remove experimental channels feature flag (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentlp committed Feb 10, 2022
1 parent 5eb1a38 commit fffaf9b
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions packages/server/src/channels/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
SmoochChannel,
TeamsChannel,
TelegramChannel,
TwilioChannel
TwilioChannel,
VonageChannel
} from '@botpress/messaging-channels'
import {
MessengerChannel as MessengerChannelLegacy,
Expand Down Expand Up @@ -35,19 +36,15 @@ export class ChannelService extends Service {

this.table = new ChannelTable()

this.channels = []

if (yn(process.env.ENABLE_EXPERIMENTAL_CHANNELS)) {
this.channels = [
...this.channels,
new MessengerChannel(),
new SlackChannel(),
new TeamsChannel(),
new TelegramChannel(),
new TwilioChannel(),
new SmoochChannel()
]
}
this.channels = [
new MessengerChannel(),
new SlackChannel(),
new TeamsChannel(),
new TelegramChannel(),
new TwilioChannel(),
new SmoochChannel(),
new VonageChannel()
]

if (!yn(process.env.DISABLE_LEGACY_CHANNELS)) {
this.channels = [
Expand Down

0 comments on commit fffaf9b

Please sign in to comment.