load subject from files instead of hard coding them #1

Merged
mb merged 3 commits from :master into master 2024-05-04 13:45:58 +02:00
Showing only changes of commit 31d3303df0 - Show all commits

View file

@ -12,7 +12,7 @@ import { declare_commands, handle_autocomplete, handle_command } from "./lib/com
const log = log_from(import.meta); const log = log_from(import.meta);
const subjects = fs.readFileSync('/modules.conf', 'utf-8').split('\n'); const subjects = new Set(fs.readFileSync('/modules.conf', 'utf-8').split('\n'));
async function main() { async function main() {
const debug_server = Deno.env.get("DEBUG"); const debug_server = Deno.env.get("DEBUG");