Twitch.tvjs:受discord.js启发,与twitch api进行接口

时间:2021-05-09 13:12:40
【文件属性】:
文件名称:Twitch.tvjs:受discord.js启发,与twitch api进行接口
文件大小:28KB
文件格式:ZIP
更新时间:2021-05-09 13:12:40
javascript api twitch twitch-api JavaScript Twitch.tvjs Twitch.tvjs是一个功能强大的node.js模块,可让您非常轻松地与twitch进行交互。 它是一个面向对象的JS库,使您的代码更加整洁并且易于理解。 安装 需要 $ npm install twitch.tvjs 用法示例 const twitch = require ( 'twitch.tvjs' ) ; const client = new twitch . Client ( { channels : [ 'channel1' , 'channel2' ] , } ) ; client . on ( 'ready' , ( ) => { console . log ( ` ${ client . user . username } Ready` ) ; } ) ; client . on ( 'chat' , ( message ) =>
【文件预览】:
Twitch.tvjs-master
----docs()
--------general()
--------examples()
--------index.yml(212B)
--------information()
----package.json(1KB)
----.eslintrc.json(1KB)
----.github()
--------workflows()
----test()
--------hosting_parsing.test.js(299B)
--------index.js(2KB)
--------actions.test.js(468B)
----esm()
--------twitch.mjs(152B)
----LICENSE(1KB)
----src()
--------client()
--------index.js(345B)
--------structure()
--------utils()
----.npmignore(103B)
----.gitignore(78B)
----typings()
--------index.d.ts(6KB)
----README.md(842B)

网友评论