lc4t / Bili-Live-Bot

Bilibili直播礼物答谢、定时广告、关注感谢工具
MIT License
67 stars 18 forks source link

希望可以增加自选礼物不答谢 #12

Open Steven52065 opened 4 years ago

Steven52065 commented 4 years ago

现在貌似是所有礼物都会答谢,但像辣条什么的随随便便就有很多,所以希望可以自己选择什么礼物不答谢,谢谢

laizef commented 3 years ago

这个可以手改:user.toml里添加const_json="conf/user.json",并且在conf/user.json里设置想要答谢的礼物和格式。

还可以设置答谢的金瓜子门槛:bili_danmu_giftthx.py里第236-237行我设置了答谢的门槛为5000金瓜子: if time.time() - info.get('t') > self.user.gift_comb_delay: if (self.is_live or (not self.user.only_live_thx)) and coin_type == 'gold' and total_coin > 5000:

lc4t commented 3 years ago

挺好,建议PR进来

  1. 5k金瓜子的门槛需要写到配置里面,在user.py中注册这个变量就好
  2. 需要明确,是一次性的金瓜子>5k呢,还是累积(也就是汇总计数周期内)>5k