tmi.js
v1.8.5
웹사이트 | 현재 tmijs/docs에 있는 문서 | 릴리스 페이지의 변경 로그
$ npm i tmi.js
const tmi = require ( 'tmi.js' ) ;
const client = new tmi . Client ( {
options : { debug : true } ,
identity : {
username : 'bot_name' ,
password : 'oauth:my_bot_token'
} ,
channels : [ 'my_channel' ]
} ) ;
client . connect ( ) . catch ( console . error ) ;
client . on ( 'message' , ( channel , tags , message , self ) => {
if ( self ) return ;
if ( message . toLowerCase ( ) === '!hello' ) {
client . say ( channel , `@ ${ tags . username } , heya!` ) ;
}
} ) ;
window
에서 " tmi
"로 사용 가능합니다.
< script src =" /scripts/tmi.min.js " > </ script >
< script >
const client = new tmi . Client ( { /* ... */ } ) ;
client . connect ( ) . catch ( console . error ) ;
</ script >
릴리스 페이지
$ git clone https://github.com/tmijs/tmi.js.git
$ npm install
$ npm run build
$ npm i -D @types/tmi.js
tmi.js 기여자 모두에게 감사드립니다!
tmi.js 저장소 기여에 대한 지침을 검토하세요. 우리는 요구 사항을 충족하지 않는 경우 Pull Request를 거부할 권리를 보유합니다.