npdoty/little-room-bot

Check for event collisions

Closed this issue · 1 comments

(I know it's in the code as a to do, but bringing it up since some people have double-booked the room using the bot.)

Might not be the most efficient way, but I think you could loop the isOccupied() function over 5 minute intervals throughout the proposed reservation to see if any of those times conflict. Might need to add another argument to the function though, or have a second similar function...

Yeah, isOccupied just needs to be parameterized.