Skip to content

Commit

Permalink
kalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NoirStar committed Mar 21, 2020
1 parent b518ed9 commit 487336a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ const env = require('env.js');
const kaling = require('kaling.js').Kakao();
const Kakao = new kaling;

Kakao.init(env.ACCOUNT_INFO.apiKey);
Kakao.login(env.ACCOUNT_INFO.id,env.ACCOUNT_INFO.pw);
try{
Kakao.init(env.ACCOUNT_INFO.apiKey);
Kakao.login(env.ACCOUNT_INFO.id,env.ACCOUNT_INFO.pw);
}catch(e){
replier.reply(e);
}


let emo = ['(하트뿅)', '(하하)', '(우와)', '(심각)', '(힘듦)', '(흑흑)', '(아잉)', '(찡긋)', '(뿌듯)', '(깜짝)', '(빠직)', '(짜증)', '(제발)', '(씨익)', '(신나)', '(헉)', '(열받아)', '(흥)', '(감동)', '(뽀뽀)', '(멘붕)', '(정색)', '(쑥스)', '(꺄아)', '(좋아)', '(굿)', '(훌쩍)', '(허걱)', '(부르르)', '(최고)', '(브이)', '(오케이)', '(최악)'];
Expand Down Expand Up @@ -59,6 +63,7 @@ AddCMD(".뽑기", "명령어 => .ㅂ\n***확률***\n꽝(36%)\n노말(50%)\n매

function response(room, msg, sender, isGroupChat, replier, ImageDB, packageName, threadId) {

room = room.replace(',',', ');
//코드실행
if (/^(\. )/.exec(msg)) {
replier.reply(runScript(msg.split(".자스")[1]));
Expand Down

0 comments on commit 487336a

Please sign in to comment.