mirror of
https://github.com/thaldrin/thaldrin.git
synced 2024-08-14 23:57:21 +00:00
start with topic overrides
This commit is contained in:
parent
4d4dc78029
commit
874a2280ab
4 changed files with 18 additions and 4 deletions
|
@ -22,11 +22,11 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@supabase/supabase-js": "^1.7.7",
|
"@supabase/supabase-js": "^1.7.7",
|
||||||
"@thaldrin/sourcefinder": "^1.0.0",
|
"@thaldrin/sourcefinder": "^1.0.0",
|
||||||
"yiff": "^3.0.3",
|
|
||||||
"chalk": "^4.1.0",
|
"chalk": "^4.1.0",
|
||||||
"discord.js": "^12.5.1",
|
"discord.js": "^12.5.1",
|
||||||
"winston": "^3.3.3",
|
"winston": "^3.3.3",
|
||||||
"winston-daily-rotate-file": "^4.5.1"
|
"winston-daily-rotate-file": "^4.5.1",
|
||||||
|
"yiff": "^3.0.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.14.37",
|
"@types/node": "^14.14.37",
|
||||||
|
|
|
@ -36,9 +36,8 @@ const SiteNames = {
|
||||||
wc: "werewolf.codes"
|
wc: "werewolf.codes"
|
||||||
};
|
};
|
||||||
|
|
||||||
export async function Shortlink(content: string, settings: boolean) {
|
export default async function Shortlink(content: string) {
|
||||||
let Possible: string[] = []
|
let Possible: string[] = []
|
||||||
if (!settings) return;
|
|
||||||
let res = content.match(Regex)
|
let res = content.match(Regex)
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (!res) return;
|
if (!res) return;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import Sourcefinder from "@thaldrin/sourcefinder";
|
import Sourcefinder from "@thaldrin/sourcefinder";
|
||||||
|
import { Message } from "discord.js";
|
||||||
import config from "../../config";
|
import config from "../../config";
|
||||||
const sourcefinder = new Sourcefinder(`Thaldrin/v${config.pkg.version} (t8.pm/bot)`)
|
const sourcefinder = new Sourcefinder(`Thaldrin/v${config.pkg.version} (t8.pm/bot)`)
|
||||||
|
|
||||||
|
|
14
src/utils/wrapper.features.ts
Normal file
14
src/utils/wrapper.features.ts
Normal 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;
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue