import { GCFBootstrapper } from 'gcf-utils' ; import appFn from './bot' ; const bootstrap = new GCFBootstrapper ( { taskTargetEnvironment : 'run' , } ) ; const server = bootstrap . server ( appFn ) ; const port = process . env . PORT ?? 8080 ; server . listen ( port , ( ) => { console . log ( `Listening on port ${ port }` ) ; } ) . setTimeout ( 0 ) ;