27 lines
765 B
TypeScript
27 lines
765 B
TypeScript
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);
|
|
}
|