bots/huthut/config/connect.js
Consider simplifying this complex logical expression. Open
Open
if (
data.botName &&
data.botAddress &&
data.botPassword &&
data.conferenceAddress &&
- Create a ticketCreate a ticket
Function connectData
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const connectData = () => {
console.log('=> Running a bot on a ' + process.env.TYPE + ' server')
let data = {
botName: process.env.BOT_NAME,
botAddress: process.env.BOT_ADDRESS,
- Create a ticketCreate a ticket