Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(robot) {
super(robot);
this.robot = robot;
this.sbotAdapter = hubotMattermost.use(this.robot);
if (this.sbotAdapter) {
this.sbotAdapter.once('connected', () => {
// client for api call
this.client = this.sbotAdapter.client;
this.client.logger = this.robot.logger;
return this.emit('connected');
});
}
}