forked from epita/ruche-manager
Merge pull request 'load subject from files instead of hard coding them' (#1) from thorondor/ruche-manager:master into master
Reviewed-on: epita/ruche-manager#1
This commit is contained in:
commit
57c3479a1f
2 changed files with 12 additions and 11 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é
|
15
src/bot.ts
15
src/bot.ts
|
@ -1,5 +1,7 @@
|
|||
#!/bin/env -S deno run -A --unstable-kv
|
||||
|
||||
import * as fs from "node:fs";
|
||||
|
||||
import { Client } from "npm:discord.js";
|
||||
|
||||
import { Storage } from "./lib/storage.ts";
|
||||
|
@ -8,18 +10,9 @@ 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 subjects = new Set([
|
||||
"Conception",
|
||||
"Hardware",
|
||||
"Infrastructure Cloud",
|
||||
"Intelligence Artificielle",
|
||||
"Robotique",
|
||||
"Sécurité",
|
||||
"SEPT",
|
||||
"Sûreté",
|
||||
]);
|
||||
const log = log_from(import.meta);
|
||||
const subjects = new Set(fs.readFileSync('/modules.conf', 'utf-8').split('\n'));
|
||||
|
||||
async function main() {
|
||||
const debug_server = Deno.env.get("DEBUG");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue