fix(modifier): removed outdated method

このコミットが含まれているのは:
sinkaroid 2022-06-07 16:01:00 +07:00
コミット 85f0df535e
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: A7DF4E245FDD8159
1個のファイルの変更1行の追加25行の削除

ファイルの表示

@ -1,29 +1,5 @@
import p from "phin";
import { CookieJar } from "tough-cookie";
import { HttpsCookieAgent } from "http-cookie-agent/http";
import { config } from "dotenv";
import * as pkg from "../../package.json";
config();
const jar = new CookieJar();
jar.setCookie(process.env.CF as string, "https://nhentai.net/");
async function nhentaiStatus(): Promise<boolean> {
const res = await p({
url: "https://nhentai.net/api/galleries/search?query=futanari",
core: {
agent: new HttpsCookieAgent({ cookies: { jar, }, }),
},
"headers": {
"User-Agent": `jandapress/${pkg.version} Node.js/16.9.1`
},
});
if (res.statusCode === 200) {
return true;
} else {
return false;
}
}
function getPururinInfo(value: string) {
return value.replace(/\n/g, " ").replace(/\s\s+/g, " ").trim();
@ -87,4 +63,4 @@ export const isNumeric = (val: string) : boolean => {
};
export { getPururinInfo, getPururinPageCount, getUrl, getId, getDate, timeAgo, mock, nhentaiStatus };
export { getPururinInfo, getPururinPageCount, getUrl, getId, getDate, timeAgo, mock };