diff --git a/index.mjs b/index.mjs index f0dcb81..029bc38 100644 --- a/index.mjs +++ b/index.mjs @@ -4,7 +4,7 @@ import path from 'node:path' import { fileURLToPath } from 'node:url' const __dirname = path.dirname(fileURLToPath(import.meta.url)) -export default (robot) => { +export default async (robot) => { const scriptsPath = path.resolve(__dirname, 'src') - robot.loadFile(scriptsPath, 'RedisBrain.mjs') + await robot.loadFile(scriptsPath, 'RedisBrain.mjs') }