File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1010import textwrap
1111import requests
1212from google .cloud import translate_v2 as translate
13+ from datetime import datetime , timezone
1314from corpus import corpus
1415from sympy import Symbol
1516import plotly .graph_objs as go
@@ -344,7 +345,7 @@ def generate_markov_chain_convo_text(
344345 start_line : str = None ,
345346 user_message : str = None ,
346347 llm_bool : bool = False ,
347- user_time = 7 ,
348+ user_time = None ,
348349) -> str | tuple [str , str , str ]:
349350
350351 # Japan Standard Time (JST) timezone
@@ -357,6 +358,8 @@ def generate_markov_chain_convo_text(
357358 "My help might not always be helpful to you but helpful to me. ... *beep* \n "
358359 "So..."
359360 )
361+ if user_time is None :
362+ user_time = datetime .now (timezone .utc )
360363
361364 local_time = user_time .astimezone (japan_tz )
362365 selected_greeting = get_greeting (local_time )
You can’t perform that action at this time.
0 commit comments