vlee489 / Turnip-Bot

A discord bot to allow the tracking and displaying of Animal Crossing Trends and other cool features
MIT License
6 stars 0 forks source link

<ap Doesn't respect current date of my timezone #39

Closed csbodine closed 4 years ago

csbodine commented 4 years ago

I live in UTC-6:00. On several occasions I've tried to add prices in my evening and TurnipBot adds it to the PM of the following day. Attached is a screenshot from last night 2020-06-09 20:36Z-6:00. I added my PM prices and TurnipBot put it in the "10/06/2020 at PM" bucket which causes the followup TST command to fail.

image

My suggestions are to either ask for a TZ value per user or to add an override to specify Day of the Week such as <ap Tues pm 171

csbodine commented 4 years ago

I found the setTimezone command which covers this issue. Sorry I wasn't paying more attention.

vlee489 commented 4 years ago

<help command gives more details for each command, there was always a data override available

vlee489 commented 4 years ago

For anyone looking at this issue in the future, your 2 options are as follows

Option one

Set a timezone

use <help setTimezone to get started with the command

Option Two

Place a manual date override at the end of a turnip command in the format DD/MM/YYYY

Example <ap pm 171 10/06/2020 This overrides the date to 10th June 2020

Turnip Bot has no way to tell where you are from the info given to us from Discord, you do have to add the info yourself. Be default dates are tied to UK time (BST/GMT)

Details for the commands are over at the Wiki