From 4e08e975e24f85cb1b20a93b23c94ee0d060738a Mon Sep 17 00:00:00 2001 From: Migan178 Date: Tue, 24 Jan 2023 18:19:26 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A8=B8=ED=95=80=EC=9D=B4=20=EB=A7=90?= =?UTF-8?q?=ED=95=9C=20=EA=B2=BD=EC=9A=B0,=20persona=EC=97=90=20muffin?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ChatBot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ChatBot.ts b/src/ChatBot.ts index f23a6a0..bbd5369 100644 --- a/src/ChatBot.ts +++ b/src/ChatBot.ts @@ -31,7 +31,7 @@ export default class ChatBot { if (msg.author.bot) return if (msg.author.id === '1026185545837191238') { this.db.run( - `INSERT INTO statement(text) VALUES('${msg.content}');`, + `INSERT INTO statement(text, persona) VALUES('${msg.content}', 'muffin');`, err => { if (err) throw err this.getResponse(msg) @@ -42,7 +42,7 @@ export default class ChatBot { const sql = `INSERT INTO statement(text) VALUES('${msg.content.replace( '머핀아 ', '' - )}')` + )}');` this.db.run(sql, err => { if (err) throw err })