Giter VIP home page Giter VIP logo

bismarck's People

Contributors

aimaribarra avatar dependabot[bot] avatar johndavedosn avatar jolkert avatar paninizer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

bismarck's Issues

[INFO] - Wish simulator implementation

Sup, @ROLFAN here!

In the end I will try to implement the wish simulator, so I need some information so I can know how to design the database.

Taking into account the following schema:

-- Wish Simulator Schema
CREATE TABLE IF NOT EXISTS wish_simulator (
    user_id BIGINT NOT NULL,
    entertwined_wishes INTEGER NOT NULL DEFAULT 0,
    limited_wishes_placeholder INTEGER NOT NULL DEFAULT 0, -- I forgor the name
    primos INTEGER NOT NULL DEFAULT 3200,
    standard_wishes_count INTEGER NOT NULL DEFAULT 0,
    limited_wishes_count INTEGER NOT NULL DEFAULT 0,
    character_list TEXT NOT NULL DEFAULT '[]',
    character_count INTEGER NOT NULL DEFAULT 0,
    weapon_list TEXT NOT NULL DEFAULT '[]',
    weapon_count INTEGER NOT NULL DEFAULT 0,
    PRIMARY KEY (user_id)
);

I guess that for each user it's desired to keep track of the amount of gacha roles, both in the standard wishes and the limeted ones (which I suppose are the event wishes), the characters they have got, and the weapons. However, I don't know what the purpose of the entertwined_wishes and primos entries are, it would be nice if someone could tell me.

In addition telling me which features should be implemented would be cool.

Thank you!

[INFO] - Wish simulator SQL implementation

See SQLite Schema

User stored in DB must have:

  1. Discord UID
  2. Primogem amount (currency for wishing)
  3. Event wishes amount
  4. Standard wishes amount
  5. A list of Character objects that they have obtained
  6. A list of Weapon objects that they have obtained

Character object:

  • name
  • ID (positive integer)
  • times obtained
  • first obtained date (optional, can skip)
  • rarity (enum of 4/5 star that can be converted into positive int of 4/5)

Weapon object:

  • name
  • ID (positive integer)
  • times obtained
  • first obtained date (optional, can skip)
  • rarity (enum of 3/4/5 star that can be converted into positive int of 3/4/5)

Considering the lack of array support in SQLite, this would be difficult to implement. Change schema to fit PostgreSQL would be acceptable but doing this in SQLite is preferable as hosting a Postgres database is somewhat of a pain.

Pagination of Warnings command

Currently chunks implementation to paginate warnings command to avoid embed character overflow.

Iterating through the chunk is an issue and this needs further work, currently stashing changes until a solution can be devised.

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.