Compare commits

...
4 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
wyj 333dc40d47 add readme 2024-10-29 12:11:42 +08:00
wyj f196fcaf83 add gitignore 2024-10-29 11:59:33 +08:00
3 changed files with 16 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
config.py
+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("魚宝中午好,吃饭了喵?")
+14
View File
@@ -0,0 +1,14 @@
# Bilibili live bot for 诗魚魚
这是给[doki诗魚魚](https://space.bilibili.com/3546600309786806)的直播间机器人。
## Plans
- [x] 礼物答谢
- [ ] 开播问候主包 (to be tested)
- [ ] 隔随机时间发送“关注鱼鱼喵”
- [ ] 首次送灯牌发送“灯牌可以点唱”提示(计划使用 redis )
- [ ] 点歌姬?远程给鱼一个基于 ws 连接的客户端?
## 致谢
- 若离弱即提供的小号
- [bilibili-api](https://github.com/Nemo2011/bilibili-api):非常好 bilibili api 库,以及文档中的非常好示例