Code Monkey home page Code Monkey logo

yoimiya's Introduction

Yoimiya

Simple Genshin Impact wish simulator discord bot. This bot is useful to test out your luck before doing the actual gacha (don't blame me if your results sucks anyway) or because you simply zero on primos just to have some fun.

This project is inspired from Genshin-Impact-Wish-Simulator and uses some assets from there. It's a cool project, you may want to check it out.

Invite Yoimiya

You can invite Yoimiya to your server here.

Updates

All Yoimiya's related updates will be posted on Telegram channel. Get notified here.

Usage

Yoimiya's commands is available on prefixed and slash commands. To use prefixed command, type y!<command> ...<args>.

Rates

This rates is opinionated since we don't really know Genshin's rates works internally.

Soft pity counter started at 75th pull for standard and character banner and 65th for weapon banner. Hard pity is triggered at 90th pull for standard and character banner and 80th for weapon banner

  • 3 Stars. Rates is 94.3% for standard and character banner and 93.3% for weapon banner. Will be set as 0% once hard pity is reached. This will be substracted once soft pity counter is started, by n pulls after soft pity start * 6.2125 (standard and character banner) or 6.20625 (weapon banner) until it reach hard pity.

Table example for standard and character banner:

Pulls 1 ... 75 76 ... 90
Rates 94.3% ... 88.0875% 81.875% ... 0%
  • 4 Stars. Rates is 5.1% for standard and character banner and 6% for weapon banner. Guaranteed on every 10th pull. Will be set as 0% once hard pity is reached.
  • 5 Stars Rates is 0.6% for standard and character banner and 0.7% for weapon banner. Will be set as 100% once hard pity is reached. This will be added once soft pity counter is started, by n pulls after soft pity start * 6.2125 (standard and character banner) or 6.20625 (weapon banner) until it reach hard pity - 1.

Table example for standard and character banner:

Pulls 1 ... 75 76 ... 90
Rates 0.6% ... 6.8125% 13.025% ... 100%

Limitations

  • The gacha results appearance doesn't really looks like the real one.
  • Images may looks blurry.
  • Images doesn't properly scaled. This mean that you may see some image is smaller than another and vice versa.
  • Currently the Fate Point System is applied to all weapon banners including those from pre 2.0 patch.
  • There's no Beginner Banner and won't be added.

If you have any suggestion for those limitations, let me know by opening an issue.

Requirements

  • NodeJS v16.x.x or higher.
  • MongoDB v4.x or higher.

Installation

  1. Download or clone this repo.
  2. Install the dependencies (Yarn recommended).

Setup

Before you can use the bot, you have to setup things first like downloads and generate the images. It's done this way to keep the repo size small. Note: You have to download and generate the images in sequentially order.

  1. Downloading images. Execute yarn download to download the images.
  2. Generating images. Execute yarn generate to process downloaded images and generate the edited one.
  3. Setup env file. First copy .env.example into .env. Then replace BOT_TOKEN with your Discord bot token and replace DATABASE_URL with your database connection url.

Running the bot

When developing, you may want to use the yarn dev command since this command will watch changes and restart the bot automatically.

When running on production, you can use the yarn start command. Note that you have to build the bot using the yarn build command first.

Contributing

PRs, Issues, suggestions, etc are welcome. Please kindly open a new issue to discuss it first.

Donating

Feeling grateful? please consider donating.

Currently Yoimiya is deployed on small server located in Indonesia. By donating, we'd be able to deploy Yoimiya on better server.

Notice

This project is not affiliated with Hoyoverse, all data used for this project belongs to Hoyoverse.

yoimiya's People

Contributors

ookamiiixd avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.