maintenance-bot/libs/getChecker.js

6 lines
210 B
JavaScript
Raw Normal View History

2022-05-28 15:03:43 +02:00
export default function getChecker(checker, sendMessage) {
return new Promise(
resolve => import(`../modules/checkers/${checker}.js`).then(
module => resolve(module.start(sendMessage))))
}