content.js 13.2 KB
var webcrawl = require('./crawling/Reol')

function jpSinger(msg){
    var send = {};
    switch(msg){
        case 'Reol' :
            send = {
                'message' : {
                    'text' : '이름 : Reol(れをる) \n성별 : 여성 \n생년월일 : 1993년 11월 9일 \n혈액형 : AB형',
                    'photo' : {
                            'url' : 'https://www.reol.jp/images/profile/reol_Aphoto_2.png',
                            'width' : 1000,
                            'height' : 667
                    },
                    'message_button' : {
                        'label' : '공식 홈페이지',
                        'url' : "https://www.reol.jp/"
                    }
                },
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol-Discography']
                }
            };
            break;
        case 'Reol-Discography' :
            webcrawl.crawl_Reol('https://namu.wiki/w/%EB%A0%88%EC%98%A4%EB%A3%A8/%EC%9D%8C%EB%B0%98#toc', function(discography){
               
            });
            break;
        case '米津玄師' :
            send = {
                'message' : {
                    'text' : '이름 : 米津玄師(Yonezu Kenshi) \n 성별 : 남성 \n생년월일 : 1991년 3월 10일 \n혈액형 : O형',
                    'photo' : {
                        'url' : 'http://reissuerecords.net/rr/wp-content/uploads/flamingo_photo2.jpg',
                        'width' : 1000,
                        'height' : 667
                    },
                    'message_button' : {
                        'label' : '공식 홈페이지',
                        'url' : "http://reissuerecords.net/"
                    }
                },
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['米津玄師-Discography']
                }
            };
            break;
        case '米津玄師-Discography' :
            send = {
                'message' : {
                    'text' : 'Album List'
                },                
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol', '米津玄師', 'yanaginagi', 'ヨルシカ', 'ダズビ', 'Polkadot Stingray', 'Aimyong']
                }

            };
            break;
            case 'Reol' :
            send = {
                'message' : {
                    'text' : '이름 : Reol(れをる) \n성별 : 여성 \n생년월일 : 1993년 11월 9일 \n혈액형 : AB형',
                    'photo' : {
                            'url' : 'https://www.reol.jp/images/profile/reol_Aphoto_2.png',
                            'width' : 1000,
                            'height' : 667
                    },
                    'message_button' : {
                        'label' : '공식 홈페이지',
                        'url' : "https://www.reol.jp/"
                    }
                },
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol-Discography']
                }
            };
            break;
        case 'Reol-Discography' :
            send = {
                'message' : {
                    'text' : 'Album List'
                },                
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol', '米津玄師', 'yanaginagi', 'ヨルシカ', 'ダズビ', 'Polkadot Stingray', 'Aimyong']
                }

            };
            break;
        case '米津玄師' :
            send = {
                'message' : {
                    'text' : '이름 : 米津玄師(Yonezu Kenshi) \n 성별 : 남성 \n생년월일 : 1991년 3월 10일 \n혈액형 : O형',
                    'photo' : {
                        'url' : 'http://reissuerecords.net/rr/wp-content/uploads/flamingo_photo2.jpg',
                        'width' : 1000,
                        'height' : 667
                    },
                    'message_button' : {
                        'label' : '공식 홈페이지',
                        'url' : "http://reissuerecords.net/"
                    }
                },
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['米津玄師-Discography']
                }
            };
            break;
        case '米津玄師-Discography' :
            send = {
                'message' : {
                    'text' : 'Album List'
                },                
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol', '米津玄師', 'yanaginagi', 'ヨルシカ', 'ダズビ', 'Polkadot Stingray', 'Aimyong']
                }

            };
            break;

        case 'yanaginagi' :
            send = {
                'message' : {
                    'text' : '이름 : yanaginagi(やなぎなぎ) \n성별 : 여성 \n생년월일 : 1993년 11월 9일 \n혈액형 : AB형',
                    'photo' : {
                            'url' : 'https://www.reol.jp/images/profile/reol_Aphoto_2.png',
                            'width' : 1000,
                            'height' : 667
                    },
                    'message_button' : {
                        'label' : '공식 홈페이지',
                        'url' : "https://www.reol.jp/"
                    }
                },
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol-Discography']
                }
            };
            break;
        case 'yanaginagi-Discography' :
            send = {
                'message' : {
                    'text' : 'Album List'
                },                
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol', '米津玄師', 'yanaginagi', 'ヨルシカ', 'ダズビ', 'Polkadot Stingray', 'Aimyong']
                }

            };
            break;
        case 'ヨルシカ' :
            send = {
                'message' : {
                    'text' : '이름 : ヨルシカ(れをる) \n성별 : 여성 \n생년월일 : 1993년 11월 9일 \n혈액형 : AB형',
                    'photo' : {
                            'url' : 'https://www.reol.jp/images/profile/reol_Aphoto_2.png',
                            'width' : 1000,
                            'height' : 667
                    },
                    'message_button' : {
                        'label' : '공식 홈페이지',
                        'url' : "https://www.reol.jp/"
                    }
                },
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol-Discography']
                }
            };
            break;
        case 'ヨルシカ-Discography' :
            send = {
                'message' : {
                    'text' : 'Album List'
                },                
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol', '米津玄師', 'yanaginagi', 'ヨルシカ', 'ダズビ', 'Polkadot Stingray', 'Aimyong']
                }

            };
            break;
        case 'ダズビ' :
            send = {
                'message' : {
                    'text' : '이름 : ダズビ(れをる) \n성별 : 여성 \n생년월일 : 1993년 11월 9일 \n혈액형 : AB형',
                    'photo' : {
                            'url' : 'https://www.reol.jp/images/profile/reol_Aphoto_2.png',
                            'width' : 1000,
                            'height' : 667
                    },
                    'message_button' : {
                        'label' : '공식 홈페이지',
                        'url' : "https://www.reol.jp/"
                    }
                },
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol-Discography']
                }
            };
            break;
        case 'ダズビ-Discography' :
            send = {
                'message' : {
                    'text' : 'Album List'
                },                
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol', '米津玄師', 'yanaginagi', 'ヨルシカ', 'ダズビ', 'Polkadot Stingray', 'Aimyong']
                }

            };
            break;
        case 'Polkadot Stingray' :
            send = {
                'message' : {
                    'text' : '이름 : Polkadot Stingray(れをる) \n성별 : 여성 \n생년월일 : 1993년 11월 9일 \n혈액형 : AB형',
                    'photo' : {
                            'url' : 'https://www.reol.jp/images/profile/reol_Aphoto_2.png',
                            'width' : 1000,
                            'height' : 667
                    },
                    'message_button' : {
                        'label' : '공식 홈페이지',
                        'url' : "https://www.reol.jp/"
                    }
                },
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol-Discography']
                }
            };
            break;
        case 'Polkadot Stingray-Discography' :
            send = {
                'message' : {
                    'text' : 'Album List'
                },                
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol', '米津玄師', 'yanaginagi', 'ヨルシカ', 'ダズビ', 'Polkadot Stingray', 'Aimyong']
                }

            };
            break;
        case 'Aimyong' :
            send = {
                'message' : {
                    'text' : '이름 : Aimyong(れをる) \n성별 : 여성 \n생년월일 : 1993년 11월 9일 \n혈액형 : AB형',
                    'photo' : {
                            'url' : 'https://www.reol.jp/images/profile/reol_Aphoto_2.png',
                            'width' : 1000,
                            'height' : 667
                    },
                    'message_button' : {
                        'label' : '공식 홈페이지',
                        'url' : "https://www.reol.jp/"
                    }
                },
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol-Discography']
                }
            };
            break;
        case 'Aimyong-Discography' :
            send = {
                'message' : {
                    'text' : 'Album List'
                },                
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol', '米津玄師', 'yanaginagi', 'ヨルシカ', 'ダズビ', 'Polkadot Stingray', 'Aimyong']
                }

            };
            break;

        default:
            break;
    }
    
    return send;
}

function krSinger(msg){
    var send = {};
    switch(msg){
        case '볼빨간사춘기' :
            send = {
                'message' : {
                    'text' : 'Reol',
                    'photo' : {
                            'url' : 'https://www.reol.jp/images/profile/reol_Aphoto_2.png',
                            'width' : 1000,
                            'height' : 667
                    },
                    'message_button' : {
                        'label' : '공식 홈페이지',
                        'url' : "https://www.reol.jp/"
                    },
                },
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol-Discography', 'Reol-Profile']
                }
            };
            break;
        case 'Reol-Discography' :
            send = {
                'message' : {
                    'text' : 'Album List.'
                },                
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol', '米津玄師', 'yanaginagi', 'ヨルシカ', 'ダズビ', 'Polkadot Stingray', 'Aimyong']
                }

            };
            break;
        case '米津玄師' :
            send = {
                'message' : {
                    'text' : '米津玄師',
                    'photo' : {
                        'url' : 'https://www.reol.jp/images/profile/reol_Aphoto_2.png',
                        'width' : 1000,
                        'height' : 667
                    },
                    'message_button' : {
                    'label' : '공식 홈페이지',
                    'url' : "https://www.reol.jp/"
                    }
                },
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['Reol-Discography','Reol-Profile']
                }
            };
            break;
        default:
            send = {
                'message' : {
                    'text' : '등록되지 않은 가수입니다.'
                },
                keyboard : {
                    'type' : 'buttons',
                    'buttons' : ['한국', '일본']
                }
            }
            break;
    }

    return send;
} 

exports.jpSinger = jpSinger;
exports.krSinger = krSinger;