Compare commits

..
2 Commits
Author SHA1 Message Date
wyj 65660e40ec fix: time module 2024-10-31 21:04:19 +08:00
wyj 498dd0b5fc update: update readme 2024-10-29 12:15:29 +08:00
2 changed files with 2 additions and 3 deletions
+1 -3
View File
@@ -77,9 +77,7 @@ async def on_preparing(event):
@monitor.on("LIVE") @monitor.on("LIVE")
async def on_live_start(event): async def on_live_start(event):
beijing_tz = timezone(timedelta(hours=8)) current_hour = time.localtime().tm_hour
now = datetime.now(beijing_tz)
current_hour = now.hour
choices = ["直播开始啦,快来看魚宝!", "欢迎魚宝进入直播间!", "上班啦,魚宝今日顺利!"] choices = ["直播开始啦,快来看魚宝!", "欢迎魚宝进入直播间!", "上班啦,魚宝今日顺利!"]
if 11 <= current_hour < 14: if 11 <= current_hour < 14:
choices.append("魚宝中午好,吃饭了喵?") choices.append("魚宝中午好,吃饭了喵?")
+1
View File
@@ -7,6 +7,7 @@
- [ ] 开播问候主包 (to be tested) - [ ] 开播问候主包 (to be tested)
- [ ] 隔随机时间发送“关注鱼鱼喵” - [ ] 隔随机时间发送“关注鱼鱼喵”
- [ ] 首次送灯牌发送“灯牌可以点唱”提示(计划使用 redis ) - [ ] 首次送灯牌发送“灯牌可以点唱”提示(计划使用 redis )
- [ ] 点歌姬?远程给鱼一个基于 ws 连接的客户端?
## 致谢 ## 致谢
- 若离弱即提供的小号 - 若离弱即提供的小号