mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
fix: change to local import
This commit is contained in:
parent
9c7a59d2ad
commit
48ee431dc5
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { ModifiedApp } from "./slackapp";
|
||||
import cheerio from "cheerio";
|
||||
// import cheerio from "cheerio";
|
||||
export default async function adventOfCode(app: ModifiedApp, channel: string) {
|
||||
const lbD = await fetch(
|
||||
"https://adventofcode.com/2024/leaderboard/private/view/3282503.json",
|
||||
|
|
@ -23,6 +23,9 @@ export default async function adventOfCode(app: ModifiedApp, channel: string) {
|
|||
}
|
||||
|
||||
export async function newDayNewChallange(app: ModifiedApp, channel: string) {
|
||||
// if it works dont ask
|
||||
const cheerio = await import("cheerio");
|
||||
|
||||
const libD = await fetch(
|
||||
`https://adventofcode.com/2024/day/${new Date().getDate()}`,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue