niles-bot / niles

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

Add discord timestamp to the embedded calendar post. #209

Closed lyuwen closed 2 years ago

lyuwen commented 2 years ago

Add the feature to have the discord timestamp of the starting time of the event and the end of the event description so that people can easily check the time of the events in their own timezone. As shown in the below screenshot. This only works for the embed style of the calendar message though, since in code style the discord timestamp format is ignored by discord. As requested in Issue #208.

Screen Shot 2022-06-15 at 8 34 36 AM
mchangrh commented 2 years ago

this has also been requested on the discord - should it be behind a config flag?

lyuwen commented 2 years ago

Yeah. It definitely can be behind a config flag. Though the feature is helpful enough to justify it being on all the time IMO.

mchangrh commented 2 years ago

yes but it also adds a lot of characters to calendars that are already restricted. If you're happy with it I can merge it now and if I have time I'll work on a config option for the live deployment

lyuwen commented 2 years ago

Here, now it's behind the config flag timestamp. It's default to '1' and user can turn it off with

!displayoptions timestamp 0