v7.2@uwuzu1.5.4をリリース
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { ueuse } from "types/types.js";
|
||||
import { readFileSync } from "fs";
|
||||
import { Reply } from "./main.js";
|
||||
|
||||
export default async function Info(data: ueuse) {
|
||||
const packageJson = JSON.parse(readFileSync("package.json", "utf-8"));
|
||||
const releaseUrl = `${packageJson.repository.url}/releases/tag/${packageJson.tag}`;
|
||||
|
||||
let editor = "";
|
||||
|
||||
if (packageJson.author.name !== "Last2014") {
|
||||
editor = `\nEdited by ${packageJson.author.name}`;
|
||||
}
|
||||
|
||||
const ueuse = await Reply(`
|
||||
バージョン:${packageJson.version}
|
||||
リリース詳細:${releaseUrl}
|
||||
|
||||
コマンドのヘルプをお探しですか?
|
||||
\`/help\`をご利用ください。
|
||||
|
||||
Created by Last2014${editor}
|
||||
`, data.uniqid);
|
||||
|
||||
console.log("概要:", ueuse);
|
||||
}
|
||||
Reference in New Issue
Block a user