mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: refactor quest models
+ separate stage and exception + reuse commandResponder
This commit is contained in:
1 parent
b41e67ee0b
commit
bb968706ad
10 files changed
+146
-94
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { Schema } from 'mongoose'
|
||||
|
||||
const responseSchema = new Schema({
|
||||
type: {
|
||||
type: String,
|
||||
enum: ['narrative', 'dialogue'],
|
||||
default: 'dialogue',
|
||||
required: true,
|
||||
},
|
||||
content: [String],
|
||||
speaker: { type: String, default: 'Ada' },
|
||||
color: String,
|
||||
})
|
||||
|
||||
export default responseSchema
|
||||
Reference in new issue
Block a user