Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

关于送礼提示 #9

Open
cancundeyingzi opened this issue Aug 23, 2022 · 4 comments
Open

关于送礼提示 #9

cancundeyingzi opened this issue Aug 23, 2022 · 4 comments

Comments

@cancundeyingzi
Copy link

cancundeyingzi commented Aug 23, 2022

请问一下...............

谢谢熱血赠送的2个辣条、1个PK票
这种是咋整的,我根据你这思路,发现如果有人用很快的手速送10个辣条,不是
谢谢熱血赠送的10个辣条
而是
谢谢熱血赠送的1个辣条
谢谢熱血赠送的1个辣条
谢谢熱血赠送的1个辣条
谢谢熱血赠送的1个辣条
谢谢熱血赠送的1个辣条
谢谢熱血赠送的1个辣条
谢谢熱血赠送的1个辣条
谢谢熱血赠送的1个辣条
谢谢熱血赠送的1个辣条
谢谢熱血赠送的1个辣条
...............................这就稍微有点蠢
感觉没什么很好的办法

@pokemonchw
Copy link

解决这个的思路是去重,把消息都放进一个dict里,另外这个仓库已经五年没更新了,可以看下我的版本

@cancundeyingzi
Copy link
Author

解决这个的思路是去重,把消息都放进一个dict里,另外这个仓库已经五年没更新了,可以看下我的版本

主要问题是延时,还有重置延时

@pokemonchw
Copy link

我的版本的话,改成了用notify来推(windows上不能用,不过没关系,自己用qt写个透明界面吧),然后做了弹幕的生命周期,去重,重复推送,之类的东西,话说回来延迟其实很简单啊,打个时间戳就好了

@cancundeyingzi
Copy link
Author

我的版本的话,改成了用notify来推(windows上不能用,不过没关系,自己用qt写个透明界面吧),然后做了弹幕的生命周期,去重,重复推送,之类的东西,话说回来延迟其实很简单啊,打个时间戳就好了

时间戳?那怎么等待n秒?time.sleep?还是循环检测时间戳大于n?大于了直接print?
我倒是不打算写gui,市面上的完善产品太多了,还全是免费的,自己写费时费力还丑

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants