GithubHelp home page GithubHelp logo

longhorn-riichi / ronhorn Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 15.16 MB

Longhorn Riichi's club bot. Includes global commands that provide mahjong utilities.

Home Page: https://longhornriichi.com/ronhorn/

License: MIT License

Python 99.96% Shell 0.04%
mahjong mahjong-algorithm mahjongsoul tenhou

ronhorn's People

Contributors

epicorange avatar peter1357908 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

killerducky

ronhorn's Issues

/injustice bug

Command:

/injustice link: https://mahjongsoul.game.yo-star.com/?paipu=231102-87960fe4-fc2c-4416-9816-410bfe059387_a823494095

Response:

TypeError('cannot unpack non-iterable int object')

Functionality: seater

Assign seats given 4/3 club players. Use autocomplete (i.e., this should come after implementing the name-autocomplete from registry).

Automatically ban suspected bot accounts

For example, if an account picked the ARML role and is not even on the ARML server, it should be auto-banned (it's likely a bot that says yes to the first choice of the onboarding questions).

Add a magic 8 ball function

From Nancy:

I think it would be better if there is a new function to predict my today’s fortune. There are two way to implement it:

Option 1:

Like fortune cookies 🥠, it may display random things, such as “10 Doras are on the way,” “Every good and perfect
gift is from riichi, ” or “Don't let yesterday
take up too much of today’ hand.”

Option 2:
A random number (0-100) function and call it “fortune index” to predict whether the person should play mahjong today. Ex: if they roll 100, “it’s a lucky day to play mahjong, you may win something big!” If they roll 20, “there is always something important than mahjong🀄️”

Add a 'nickname' field to /injustice

which can be used to match a player by name, instead of specifying starting seat.

notably riichi city logs don't store a default seat location, i.e. all logs are viewed from East, making this method necessary for riichi city logs

"stats" command

Stats for a player, and stats for the club. Need to think what to include (number of games played, average score of 1st place, etc.).

/register enters the wrong Discord ID?

For Nathan and Kosuke, it seems the account name without the "#xxxx" number suffix is recorded, but the actual Discord ID does have those numbers. I had to manually change this in the leaderboard sheet. Should look into this.

Make a "wake up" command

Maybe also only make the mahjong soul accounts log in when monitoring is needed? In any case, make one command to wake up all lobby managers.

Add Game Result Parser

E.g., like that of the ARML bot. Possibly with options to show per-hand results, a graph, etc.

Manual Score Entry

Manually enter score with Discord names (discord.Member type) (automatically accounts for placement based on starting East).

Command options: Sanma/Yonma, and East/South.
Sanitize input (repeat names, un-registered names, summation check -- need an optional "leftover riichi sticks" option -- they are awarded to first place AFTER placement checking).

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.