(userId, notes)
| 15 | } |
| 16 | } |
| 17 | async function saveUserNotes(userId, notes) { |
| 18 | if (HAS_DB) { |
| 19 | await store.saveSetting(userId, 'notes', notes); |
| 20 | } |
| 21 | else { |
| 22 | notesDB[userId] = notes; |
| 23 | } |
| 24 | } |
| 25 | export default { |
| 26 | command: 'notes', |
| 27 | aliases: ['note'], |