feat: 머핀이 말한 경우, persona에 muffin추가

This commit is contained in:
Siwoo Jeon 2023-01-24 18:19:26 +09:00
parent 889e4b7081
commit 4e08e975e2
Signed by: migan
GPG key ID: C4151385FFD2082A

View file

@ -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
})