MarcTowler / discord-bot

BSD 2-Clause "Simplified" License
2 stars 0 forks source link

Add notes to archiving #19

Closed MarcTowler closed 5 years ago

MarcTowler commented 5 years ago

Add the ability to add notes to the end of the current !archive command.

We can do this one of two ways, either make them add quotation marks to the notes and REGEX the content between them OR pop off the initial arguments and then join the remaining arguments with a space to get the notes.

API will need to be updated to accommodate this too

MarcTowler commented 5 years ago

If we go with the quotation marks option, this should work to pull the ""'s and remove the " from either end message.content.match(/"(.+?)"/g) options[0].replace(/"/g, '')

MarcTowler commented 5 years ago

Went without the quotation marks but it is possible to have it there in the future

MarcTowler commented 5 years ago

Fixed in #21