Fix path
This commit is contained in:
parent
93f78fd78f
commit
ac2f47f431
1 changed files with 3 additions and 14 deletions
17
src/bot.ts
17
src/bot.ts
|
@ -1,5 +1,7 @@
|
||||||
#!/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,20 +12,7 @@ import { declare_commands, handle_autocomplete, handle_command } from "./lib/com
|
||||||
|
|
||||||
|
|
||||||
const log = log_from(import.meta);
|
const log = log_from(import.meta);
|
||||||
import * as fs from "node:fs";
|
const subjects = fs.readFileSync('/modules.conf', 'utf-8').split('\n');
|
||||||
const subjects = fs.readFileSync('/path-to-file', '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