Git Product home page Git Product logo

ct-ticket-tracker's Introduction

Redoing this readme, please wait warmly

ct-ticket-tracker's People

Contributors

sartoriccardo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

zhuyifei1999

ct-ticket-tracker's Issues

`/tilestrat` stops working after 11 seasons and gets slower over time

Discord Forums have a limitation where each of them can only have 20 tags. With the current system, after 11 seasons, the bot won't be able to create the Season XX tags. Furthermore, the more seasons there are, the slower the command will be since it has to iterate through every thread and there isn't a quick way to do so provided by Discord.

Solution

  • Thread IDs created by /tilestrat are to be stored in a table, alongside any metadata needed for the command to work, that was previously gotten from the thread's applied tags.
  • Have Season XX be included in the thread's title to make searching easier even if the bot should happen to be offline.

This solves both scalability and speed at the cost of having to carefully monitor all threads and properly sync the database.

Planner might miss expire ping if 2 tiles expire within 5 seconds of each other

Suppose there's 3 tiles expiring at the following times:

  • FBF 1:33:29
  • CAG 1:33:32
  • CBF 1:52:19

The function check_decay loops every 5 seconds, then checks the tile that expires the soonest from the current time. This means if check_decay loops at 1:33:28 and then at 1:33:33, it will correctly ping for FBF, but skip CAG, since its expire time is before the current time and will therefore ignore it.

Solution

Either:

  • Group decay pings that happen between 5 seconds of each other
  • Don't check the next tile to expire from the current time, but rather from the expire time of the last expired tile

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.