start with topic overrides

This commit is contained in:
Lio Melio 2021-04-07 02:14:41 +02:00
parent 4d4dc78029
commit 874a2280ab
No known key found for this signature in database
GPG Key ID: 7B114FAB346B238B
4 changed files with 18 additions and 4 deletions

View File

@ -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",

View File

@ -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;

View File

@ -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)`)

View File

@ -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;
}