dthiendoan / liche-bot

Based on hubot for hipchat
5 stars 4 forks source link

School idol festival gachapon feature #5

Open Ryxias opened 7 years ago

Ryxias commented 7 years ago

Product Request: SIF Gacha Simulator

Summary

A simulator for making pulls on the School Idol Festival mobile game.

User Stories

Feature #1: The basic pull

The most basic command should be &gacha. The expected behavior is that Nicobot will randomly pick a card from the School Idol Festival card list and return it. Every card in the entire game should approximately the same probability.

Nicobot will respond with a URL to the default card_image of the card to slack. Slack is expected to automatically expand the image.

To fetch image metadata, I recommend using the School Idol Festival API.

Feature #2: The Rare Pull

Feature enhancement to gacha that behaves more consistently with the way true PULLs work in the game.

The command is &gacha mu and &gacha aqours. The expectation is that Nicobot will randomly select a card from the card list following these criteria:

Optimization #1: API Call optimization via caching

In a default implementation, we will be hitting the API repeatedly for every single &gacha call. This optimization task is an open-ended task to design a caching system that will allow us to avoid making repeated calls to SIF API, in the case they are slow or suffer downtime.