longhorn-riichi / ronhorn Goto Github PK
View Code? Open in Web Editor NEWLonghorn Riichi's club bot. Includes global commands that provide mahjong utilities.
Home Page: https://longhornriichi.com/ronhorn/
License: MIT License
Longhorn Riichi's club bot. Includes global commands that provide mahjong utilities.
Home Page: https://longhornriichi.com/ronhorn/
License: MIT License
Once the bot goes online in the club server.
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')
Assign seats given 4/3 club players. Use autocomplete (i.e., this should come after implementing the name-autocomplete from registry).
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).
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🀄️”
As opposed to having all slash commands dedicated to the Longhorn Riichi server
Given their respective tenhou/mahjong soul accounts
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
via createContestGame
Like jekyll-mahjong, allowing sideways tiles.
E.g.,
in /parse
and in onGameEndNotification
Don't "fetch ALL records". Fetch only one.
Add to UvUManager as well. (just made an issue on UvUManager instead)
Order them according to the algorithm in the manual score entry.
Also:
on_NotifyContestGameEnd
Longhorn, Texas, Austin, UT, Ronhorn, Ronhorn, etc.
Only outside of the main server?
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.).
Make a webpage for the bot?
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.
Game end notification (game start notification as well? Or is it already sorted by seat and thus trivial?)
/parse
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.
The new events posted seem to be 1 hour off after daylight savings. Weird.
E.g., like that of the ARML bot. Possibly with options to show per-hand results, a graph, etc.
so we can enable/disable event posting at will
(applies to /skill as well but not /parse, so likely something in the injustice judge module)
/injustice link:https://tenhou.net/4/?log=2023112819gm-0039-0000-5d801733&tw=0
"list index out of range"
This also helps sanitize input
In Discord bot description and in /help
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).
In case of when games are somehow not recorded.
/injustice provides unlikely thingies, \justice would provide real info
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.