diff --git a/modules.conf b/modules.conf new file mode 100644 index 0000000..8c6b8e7 --- /dev/null +++ b/modules.conf @@ -0,0 +1,8 @@ +Conception +Hardware +Infrastructure Cloud +Intelligence Artificielle +Robotique +Sécurité +SEPT +Sûreté \ No newline at end of file diff --git a/src/bot.ts b/src/bot.ts index 9e91075..817a576 100755 --- a/src/bot.ts +++ b/src/bot.ts @@ -8,8 +8,12 @@ import { update_loop } from "./lib/board.ts"; import { notification_loop } from "./lib/notification.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([ "Conception", "Hardware", @@ -19,7 +23,7 @@ const subjects = new Set([ "Sécurité", "SEPT", "Sûreté", -]); +]);*/ async function main() { const debug_server = Deno.env.get("DEBUG");