File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default async (button: ButtonInteraction) => {
1919 }
2020 (
2121 new (
22- await import ( `./${ button . customId } .js ` )
22+ await import ( `./${ button . customId } ` )
2323 ) . default ( ) as InteractionHandler
2424 ) . execute ( button ) ;
2525} ;
Original file line number Diff line number Diff line change @@ -6,18 +6,15 @@ const getPlugins = async (): Promise<Hapi.Plugin<unknown>[]> => {
66 const files = await fs . readdir ( './plugins' ) ;
77 for await ( const file of files ) {
88 if ( file . endsWith ( '.js' ) || file . endsWith ( '.ts' ) ) {
9- const plugin = ( await import ( `./plugins/${ file } ` ) ) . default ;
9+ const plugin = ( await import ( `.. /plugins/${ file } ` ) ) . default ;
1010 plugins . push ( plugin ) ;
1111 }
1212 }
1313 console . log ( plugins ) ;
1414 return plugins ;
1515} ;
1616
17- const server : Hapi . Server = Hapi . server ( {
18- port : 3000 ,
19- host : 'localhost' ,
20- } ) ;
17+ const server : Hapi . Server = Hapi . server ( { port : 3000 , host : 'localhost' } ) ;
2118
2219export async function init ( ) {
2320 await server . initialize ( ) ;
You can’t perform that action at this time.
0 commit comments