niles-bot / niles

Niles - a Discord bot for interfacing with Google Calendar
http://nilesbot.com
MIT License
61 stars 22 forks source link

Delete Command issue #198

Open reedbird8 opened 3 years ago

reedbird8 commented 3 years ago

I have tried copy and pasting the event name into the delete command. Also tried the format as follows: !delete day time

No matter what, I receive an error message "Couldn't find event with that name - make sure you use exactly what the event is named!"

mchangrh commented 3 years ago

!delete has the following restrictions

mchangrh commented 3 years ago

relevant code https://github.com/niles-bot/niles/blob/db8ef87fdace758a52c888283f5a752118c5b3c5/handlers/commands.js#L684-L703

reedbird8 commented 3 years ago

That still doesn't help me figure out why it's not working.

If I have an event that was created with the command:

!create Test Event on Sept 25 at 4PM EDT

that then gives me an event with the name/summary "Test Event", shouldn't I be able to delete it with the following command:

!delete Test Event

reedbird8 commented 3 years ago

Sample image

image

mchangrh commented 3 years ago

trying with debug, there was an issue a lot time ago with having spaces but that was resolved a while ago

mchangrh commented 3 years ago

race condition, node isn't running it synchronously so I'll have to force an await

mchangrh commented 3 years ago

forcing await is returning the missing argument error, will probably have to wait for the rewrite

reedbird8 commented 3 years ago

So, this means it likely won't work for the time being and manually delete will be required?