add game command

This commit is contained in:
Tutur33
2024-02-26 11:20:08 +01:00
parent a9d92fbff6
commit 7ee772a6b9
23 changed files with 229 additions and 160 deletions
-1
View File
@@ -4,7 +4,6 @@ import path from 'path';
module.exports = function loadEvents(client: Client, dir: string): number {
let count = 0;
dir = `../${dir}`
fs.readdirSync(path.join(__dirname, dir)).forEach((file: string) => {
const filePath = path.join(__dirname, dir, file);
if (fs.statSync(filePath).isDirectory()) {