Compare commits
4
Commits
c84ee68cd8
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65660e40ec | ||
|
|
498dd0b5fc | ||
|
|
333dc40d47 | ||
|
|
f196fcaf83 |
@@ -0,0 +1 @@
|
||||
config.py
|
||||
+1
-3
@@ -77,9 +77,7 @@ async def on_preparing(event):
|
||||
|
||||
@monitor.on("LIVE")
|
||||
async def on_live_start(event):
|
||||
beijing_tz = timezone(timedelta(hours=8))
|
||||
now = datetime.now(beijing_tz)
|
||||
current_hour = now.hour
|
||||
current_hour = time.localtime().tm_hour
|
||||
choices = ["直播开始啦,快来看魚宝!", "欢迎魚宝进入直播间!", "上班啦,魚宝今日顺利!"]
|
||||
if 11 <= current_hour < 14:
|
||||
choices.append("魚宝中午好,吃饭了喵?")
|
||||
|
||||
@@ -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 库,以及文档中的非常好示例
|
||||
Reference in New Issue
Block a user