trackmyd-bot/auth.js

8 lines
141 B
JavaScript

const config = require('./config');
function auth(userId) {
return config.app.authorizedUsers.includes(userId);
}
module.exports = auth;