Giter Site home page Giter Site logo

Comments (4)

SK-415 avatar SK-415 commented on August 23, 2024

经过观察, bot大约在早上2点到7点之间, 动态推送会失效. 暂时还没找到解决方法.

from dd-bot.

xianyujunshigeCDD avatar xianyujunshigeCDD commented on August 23, 2024

经过观察,bot大约在早上2点到7点之间,动态推进会失效。暂时还没找到解决方法。

我又看了几天,我的这个确实是什么时间都不会动态推送,请问是有什么相关设置吗

from dd-bot.

Polyisoprene avatar Polyisoprene commented on August 23, 2024

if dynamic.time > last_time and dynamic.time > datetime.now().timestamp() - timedelta(minutes=10).seconds:
是不是这不太对???感觉动态这块设计时间的就这块

from dd-bot.

SK-415 avatar SK-415 commented on August 23, 2024

这条判断语句分为两部分, 前面的 dynamic.time > last_time 是跟已经推送的最后一条动态时间对比, 后面的 dynamic.time > datetime.now().timestamp() - timedelta(minutes=10).seconds 是为了确保动态时间在十分钟以内, 防止DD机在极端情况下刷屏 (比如关机很长时间, 攒了一堆动态没推, 启动后疯狂推送).

同时, 本项目所有功能已迁移至 HarukaBot, 将在 HarukaBot 的部署教程编写完毕后归档.

这里对 @xianyujunshigeCDD 说声抱歉, 上周在忙着迁移项目忘记回复了.

from dd-bot.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.