The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/rocketchat-slackbridge/settings.js

71 lines
1.4 KiB

Meteor.startup(function() {
RocketChat.settings.addGroup('SlackBridge', function() {
this.add('SlackBridge_Enabled', false, {
type: 'boolean',
i18nLabel: 'Enabled',
public: true
});
this.add('SlackBridge_APIToken', '', {
type: 'string',
enableQuery: {
_id: 'SlackBridge_Enabled',
value: true
},
i18nLabel: 'API_Token'
});
this.add('SlackBridge_AliasFormat', '', {
type: 'string',
enableQuery: {
_id: 'SlackBridge_Enabled',
value: true
},
i18nLabel: 'Alias_Format',
i18nDescription: 'Alias_Format_Description'
});
this.add('SlackBridge_ExcludeBotnames', '', {
type: 'string',
enableQuery: {
_id: 'SlackBridge_Enabled',
value: true
},
i18nLabel: 'Exclude_Botnames',
i18nDescription: 'Exclude_Botnames_Description'
});
this.add('SlackBridge_Out_Enabled', false, {
type: 'boolean',
enableQuery: {
_id: 'SlackBridge_Enabled',
value: true
}
});
this.add('SlackBridge_Out_All', false, {
type: 'boolean',
enableQuery: [{
_id: 'SlackBridge_Enabled',
value: true
}, {
_id: 'SlackBridge_Out_Enabled',
value: true
}]
});
this.add('SlackBridge_Out_Channels', '', {
type: 'roomPick',
enableQuery: [{
_id: 'SlackBridge_Enabled',
value: true
}, {
_id: 'SlackBridge_Out_Enabled',
value: true
}, {
_id: 'SlackBridge_Out_All',
value: false
}]
});
});
});