forked from epita/ruche-manager
load subjects from a file
This commit is contained in:
parent
7a4385b9cd
commit
93f78fd78f
2 changed files with 14 additions and 2 deletions
8
modules.conf
Normal file
8
modules.conf
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
Conception
|
||||||
|
Hardware
|
||||||
|
Infrastructure Cloud
|
||||||
|
Intelligence Artificielle
|
||||||
|
Robotique
|
||||||
|
Sécurité
|
||||||
|
SEPT
|
||||||
|
Sûreté
|
|
@ -8,8 +8,12 @@ import { update_loop } from "./lib/board.ts";
|
||||||
import { notification_loop } from "./lib/notification.ts";
|
import { notification_loop } from "./lib/notification.ts";
|
||||||
import { declare_commands, handle_autocomplete, handle_command } from "./lib/commands/commands.ts";
|
import { declare_commands, handle_autocomplete, handle_command } from "./lib/commands/commands.ts";
|
||||||
|
|
||||||
const log = log_from(import.meta);
|
|
||||||
|
|
||||||
|
const log = log_from(import.meta);
|
||||||
|
import * as fs from "node:fs";
|
||||||
|
const subjects = fs.readFileSync('/path-to-file', 'utf-8').split('\n');
|
||||||
|
|
||||||
|
/*
|
||||||
const subjects = new Set([
|
const subjects = new Set([
|
||||||
"Conception",
|
"Conception",
|
||||||
"Hardware",
|
"Hardware",
|
||||||
|
@ -19,7 +23,7 @@ const subjects = new Set([
|
||||||
"Sécurité",
|
"Sécurité",
|
||||||
"SEPT",
|
"SEPT",
|
||||||
"Sûreté",
|
"Sûreté",
|
||||||
]);
|
]);*/
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const debug_server = Deno.env.get("DEBUG");
|
const debug_server = Deno.env.get("DEBUG");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue