server/services/nextcloud-talk/lib/bot/bot.startPolling.js
Function startPolling
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function startPolling(userId) {
logger.debug(`Start polling Nextcloud Talk for user: ${userId}`);
this.bots[userId].NEXTCLOUD_URL = await this.gladys.variable.getValue('NEXTCLOUD_URL', this.serviceId, userId);
this.bots[userId].NEXTCLOUD_BOT_USERNAME = await this.gladys.variable.getValue(