mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 21:20:27 -04:00
Allow #deletenote to erase more than one note at a time. Resolve #20
This commit is contained in:
parent
28e74279ac
commit
2507e38739
3 changed files with 22 additions and 10 deletions
|
@ -102,6 +102,7 @@ const modifier = (text) => {
|
|||
state.notes.forEach(function(x) {
|
||||
text += `\n${counter++}. ${x}`
|
||||
})
|
||||
if (state.notes.length == 0) text += "\nThere are no notes!"
|
||||
text += "\n**************\n\n"
|
||||
break
|
||||
case "clearNotes":
|
||||
|
@ -198,7 +199,7 @@ const modifier = (text) => {
|
|||
text += "\n#clearnotes"
|
||||
text += "\n Removes all notes."
|
||||
text += "\n#removenote value"
|
||||
text += "\n Removes the specified note as indicated by the number listed in #shownotes."
|
||||
text += "\n Removes the specified note as indicated by the number listed in #shownotes. To delete multiple notes, type the numbers with spaces or commas between them. This is safer than calling #removenote multiple times because the numbers shift as notes are deleted."
|
||||
|
||||
text += "\n\n--Characters--"
|
||||
text += "\n#setup"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue