mirror of https://github.com/thaldrin/thaldrin.git
5 lines
343 B
TypeScript
5 lines
343 B
TypeScript
import path from "path"
|
|
import { readdirSync as read } from "fs"
|
|
import Thaldrin from '../handler/client/Client'
|
|
export async function Folders() { return await read(path.join(__dirname, '../modules')) }
|
|
export async function Commands(module: string, Thaldrin: Thaldrin) { return Thaldrin.commands.filter(command => command.module === module) } |