v25.8.9
This commit is contained in:
parent
ed3606778e
commit
b9a4fe8763
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "notice-uwuzu",
|
"name": "notice-uwuzu",
|
||||||
"version": "v25.8.8@uwuzu1.6.4",
|
"version": "v25.8.9@uwuzu1.6.4",
|
||||||
"tag": "v25.8.8",
|
"tag": "v25.8.9",
|
||||||
"description": "Notice Bot for uwuzu",
|
"description": "Notice Bot for uwuzu",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,12 @@ export default async function MiQAllow(data: ueuse) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data.replyid === "") {
|
||||||
|
console.log("MiQ許可制(誤ユーズ):", await Reply(`
|
||||||
|
形式が正規ではありません。
|
||||||
|
`, data.uniqid));
|
||||||
|
}
|
||||||
|
|
||||||
// 権限一覧取得
|
// 権限一覧取得
|
||||||
const permissions: { [user: string]: Permission } =
|
const permissions: { [user: string]: Permission } =
|
||||||
JSON.parse(readFileSync("data/miqPermissions.json", "utf-8"));
|
JSON.parse(readFileSync("data/miqPermissions.json", "utf-8"));
|
||||||
|
|
@ -38,7 +44,7 @@ export default async function MiQAllow(data: ueuse) {
|
||||||
).json())["0"];
|
).json())["0"];
|
||||||
|
|
||||||
const me: meApi = await (
|
const me: meApi = await (
|
||||||
await fetch(`${config.uwuzu.host}/api/me`, {
|
await fetch(`${config.uwuzu.host}/api/me/`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
cache: "no-store",
|
cache: "no-store",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue