diff --git a/package.json b/package.json index abf099d..df4d7a5 100644 --- a/package.json +++ b/package.json @@ -22,11 +22,11 @@ "dependencies": { "@supabase/supabase-js": "^1.7.7", "@thaldrin/sourcefinder": "^1.0.0", - "yiff": "^3.0.3", "chalk": "^4.1.0", "discord.js": "^12.5.1", "winston": "^3.3.3", - "winston-daily-rotate-file": "^4.5.1" + "winston-daily-rotate-file": "^4.5.1", + "yiff": "^3.0.3" }, "devDependencies": { "@types/node": "^14.14.37", diff --git a/src/utils/shortlink.ts b/src/utils/shortlink.ts index e60952d..eea1486 100644 --- a/src/utils/shortlink.ts +++ b/src/utils/shortlink.ts @@ -36,9 +36,8 @@ const SiteNames = { wc: "werewolf.codes" }; -export async function Shortlink(content: string, settings: boolean) { +export default async function Shortlink(content: string) { let Possible: string[] = [] - if (!settings) return; let res = content.match(Regex) console.log(res) if (!res) return; diff --git a/src/utils/sourcefinder.ts b/src/utils/sourcefinder.ts index 66dc935..5942176 100644 --- a/src/utils/sourcefinder.ts +++ b/src/utils/sourcefinder.ts @@ -1,4 +1,5 @@ import Sourcefinder from "@thaldrin/sourcefinder"; +import { Message } from "discord.js"; import config from "../../config"; const sourcefinder = new Sourcefinder(`Thaldrin/v${config.pkg.version} (t8.pm/bot)`) diff --git a/src/utils/wrapper.features.ts b/src/utils/wrapper.features.ts new file mode 100644 index 0000000..a8385cb --- /dev/null +++ b/src/utils/wrapper.features.ts @@ -0,0 +1,14 @@ +import sourcefinder from "./sourcefinder"; +import shortlink from "./shortlink"; +import { Message } from "discord.js"; + + +let SL = /(nosl|no-?short(link(s|ing)?)?)/gmi +let SF = /(nosf|no-?source(find(er|ing)?)?)/gmi + + + +export default async function Shortlink(message: Message, setting: boolean) { + if (!setting) return; + +} \ No newline at end of file