Compare commits
No commits in common. "57c3479a1ff0b0f16c6c0b37b5b07a73b25b2dc8" and "7a4385b9cd946bad782dfddd5de8caa44ce456aa" have entirely different histories.
57c3479a1f
...
7a4385b9cd
2 changed files with 11 additions and 12 deletions
|
@ -1,8 +0,0 @@
|
||||||
Conception
|
|
||||||
Hardware
|
|
||||||
Infrastructure Cloud
|
|
||||||
Intelligence Artificielle
|
|
||||||
Robotique
|
|
||||||
Sécurité
|
|
||||||
SEPT
|
|
||||||
Sûreté
|
|
15
src/bot.ts
15
src/bot.ts
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/env -S deno run -A --unstable-kv
|
#!/bin/env -S deno run -A --unstable-kv
|
||||||
|
|
||||||
import * as fs from "node:fs";
|
|
||||||
|
|
||||||
import { Client } from "npm:discord.js";
|
import { Client } from "npm:discord.js";
|
||||||
|
|
||||||
import { Storage } from "./lib/storage.ts";
|
import { Storage } from "./lib/storage.ts";
|
||||||
|
@ -10,9 +8,18 @@ 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);
|
||||||
const subjects = new Set(fs.readFileSync('/modules.conf', 'utf-8').split('\n'));
|
|
||||||
|
const subjects = new Set([
|
||||||
|
"Conception",
|
||||||
|
"Hardware",
|
||||||
|
"Infrastructure Cloud",
|
||||||
|
"Intelligence Artificielle",
|
||||||
|
"Robotique",
|
||||||
|
"Sécurité",
|
||||||
|
"SEPT",
|
||||||
|
"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