const bootstrapFunction = tsFile.getFunction('bootstrap'); const listenStatement = bootstrapFunction.getStatement(node => node.getText().includes('listen'), ); const setPrefixStatement = bootstrapFunction.getStatement(node => node.getText().includes('setGlobalPrefix'), ); if (!listenStatement || setPrefixStatement) {
const bootstrapFunction = tsFile.getFunction('bootstrap'); const listenStatement = bootstrapFunction.getStatement(node => node.getText().includes('listen'), ); const setPrefixStatement = bootstrapFunction.getStatement(node => node.getText().includes('setGlobalPrefix'), ); if (!listenStatement || setPrefixStatement) {