【文件属性】:
文件名称:nekobot-api:适用于Node.js的NekoBot API包装器
文件大小:133KB
文件格式:ZIP
更新时间:2021-04-04 00:21:40
api image anime discord api-wrapper
nekobot-api
于Node.js的包装器
正在安装
# npm
npm i nekobot-api
# yarn
yarn add nekobot-api
用法示例
const { NekoBot } = require ( "nekobot-api" ) ;
const api = new NekoBot ( ) ;
// imagegen endpoint
( async ( ) => {
const image = await api . generate ( "magik" , { image : "image url" } ) ;
console . log ( image ) ;
} ) ( ) ;
// image endpoint
( async ( ) => {
const image = await api . get ( "food"
【文件预览】:
nekobot-api-master
----.gitignore(2KB)
----tsconfig.json(437B)
----typedoc.json(69B)
----README.md(681B)
----CHANGELOG.md(1KB)
----.github()
--------workflows()
--------dependabot.yml(200B)
----docs()
--------globals.html(13KB)
--------index.html(7KB)
--------classes()
--------assets()
----LICENSE(1KB)
----.eslintrc(1KB)
----package.json(1KB)
----dist()
--------utils()
--------typings()
--------index.js(586B)
--------index.d.ts(61B)
--------classes()
----src()
--------utils()
--------typings()
--------index.ts(62B)
--------classes()
----yarn.lock(104KB)