nixnest / scepter

Spiritual successor to Nixbot
https://discord.gg/g3gD5xd
MIT License
6 stars 5 forks source link

Implement handling of complex modules (modules as a directory) #53

Open ldelelis opened 4 years ago

ldelelis commented 4 years ago

This would help decoupling certain logic from the kernel's code, while keeping module files uncluttered. See for example: server_stats module

ldelelis commented 4 years ago

Apparently, this is already possible, due to how module specification works in Javascript. All that's needed is that the module's directory contains an importable index.ts file. Should we document this somehow?

ldelelis commented 4 years ago

Documentation to be implemented by #64