Showing 3 of 7 total issues
Function initialize
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function initialize(
initializeOptions: InitializeOptions = {},
): Promise<InitializeObject> {
return new Promise((resolve, reject) => {
loadEnvVariables(); // make sure all variables are available
Function setUpRoutes
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function setUpRoutes(
app: Express,
startOptions: StartServerOptions,
): void {
if (startOptions.beforeRouteSetup) {
Function callbackRequestHandler
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function callbackRequestHandler(
type: 'add' | 'remove',
options: StartServerOptions,
): RequestHandler {
const { botname } = options;