mirror of https://github.com/thaldrin/thaldrin.git
start with topic overrides
This commit is contained in:
parent
4d4dc78029
commit
874a2280ab
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)`)
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
Loading…
Reference in New Issue