貓虎皮twitch聊天室指令說明(難以說明,故以js描述)

class   chat_room {
     constructor ( idname ){
         this . id  =  id ;
         this . name  =  name ;
    }
    print(...text){
        console.log(...text);
    }
    help(){
        this.print(' [native code] ');
    }
}
class chat_user{
    static constructor(systemVariable){
        this.id = systemVariable.id;
        this.name = systemVariable.name;
        this.twitch = new twitch(systemVariable)/* Uncaught ReferenceError: twitch is not defined at <anonymous>:1:1 */;
    }
}
function user(...user){
    if(user == 'me'){
        user = [twitch.getUser('id')]/* Uncaught ReferenceError: twitch is not defined at <anonymous>:1:1 */;
    }
    let u = new chat_user(...user);
    return(u);
}
const chat = new chat_room();