A powerful and extendable Discord bot, with it's own module system :3 thevoid.cafe/projects/voidy
at develop 595 B view raw
1//=============================================== 2// Imports 3//=============================================== 4import type { Module } from "../core/types/Module"; 5import { Loader } from "../core/Loader"; 6 7//=============================================== 8// ModuleLoader Implementation 9//=============================================== 10export class ModuleLoader extends Loader<Module> { 11 public id = "module"; 12 public async validate(data: Partial<Module>) { 13 if (!data.id || !data.name || !data.description || !data.author || !data.exports) return null; 14 15 return data as Module; 16 } 17}