Bili-Live-Bot icon indicating copy to clipboard operation
Bili-Live-Bot copied to clipboard

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

Open Steven52065 opened this issue 4 years ago • 2 comments

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

Steven52065 avatar Jul 12 '20 02:07 Steven52065

这个可以手改: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:

laizef avatar May 18 '21 12:05 laizef

挺好,建议PR进来

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

lc4t avatar May 22 '21 13:05 lc4t