Skip to content

Commit

Permalink
test for new atction
Browse files Browse the repository at this point in the history
  • Loading branch information
a3510377 committed Feb 19, 2024
1 parent b7f9768 commit f8c6c66
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions extra/discord/game/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ class TimeCog(BaseCog):
async def time(self, ctx: Context):
embed = Embed(color=Color.random(), timestamp=datetime.now())

now = lambda x: datetime.now(tz=timezone(timedelta(hours=x))).strftime(
"%Y-%m-%d %H:%M:%S"
)
now = lambda x: datetime.now(tz=timezone(timedelta(hours=x))).strftime("%Y-%m-%d %H:%M:%S")
embed.add_field(
name="UTC+8 (台灣/中國/香港/澳洲西部)",
value=now(8),
Expand Down Expand Up @@ -44,3 +42,6 @@ async def time(self, ctx: Context):

def setup(bot: "Bot"):
bot.add_cog(TimeCog(bot))


# test for new action

0 comments on commit f8c6c66

Please sign in to comment.