Comments (4)
经过观察, bot大约在早上2点到7点之间, 动态推送会失效. 暂时还没找到解决方法.
from dd-bot.
经过观察,bot大约在早上2点到7点之间,动态推进会失效。暂时还没找到解决方法。
我又看了几天,我的这个确实是什么时间都不会动态推送,请问是有什么相关设置吗
from dd-bot.
if dynamic.time > last_time and dynamic.time > datetime.now().timestamp() - timedelta(minutes=10).seconds:
是不是这不太对???感觉动态这块设计时间的就这块
from dd-bot.
这条判断语句分为两部分, 前面的 dynamic.time > last_time
是跟已经推送的最后一条动态时间对比, 后面的 dynamic.time > datetime.now().timestamp() - timedelta(minutes=10).seconds
是为了确保动态时间在十分钟以内, 防止DD机在极端情况下刷屏 (比如关机很长时间, 攒了一堆动态没推, 启动后疯狂推送).
同时, 本项目所有功能已迁移至 HarukaBot
, 将在 HarukaBot
的部署教程编写完毕后归档.
这里对 @xianyujunshigeCDD 说声抱歉, 上周在忙着迁移项目忘记回复了.
from dd-bot.
Related Issues (3)
- 请问该bot如何使用 HOT 13
- 如何安装?……
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dd-bot.