dragoncraft89 / dice-skill Goto Github PK
View Code? Open in Web Editor NEWA skill for the mycroft assistant, that generates random numbers for you
License: GNU General Public License v3.0
A skill for the mycroft assistant, that generates random numbers for you
License: GNU General Public License v3.0
I've tried multiple times to roll 5d10. Every time, I get 5 1s. So it seems to understand that I want 5 rolls, but it's not randomizing properly. Rolling a d10 works fine, so it's just when doing multiple d10s.
Ex.
Hey Mycroft, roll three dices
or
Hey Mycroft, roll two d20
Answer could be:
The first number is 3, the second number is 6, the third number is 1
For example, 3d4 +5
or d20 +1
It seems like padatious omits the "-" before numbers when parsing the intent.
Hi Florian,
I found that the dice skill sometimes fails if my "roll a dice" gets interpreted as "roll a die". Line #22 returns a
ValueError: invalid literal for int() with base 10: 'ie'
Could add a check for integers before attempting the split?
Love the skill though!
The random number generation was disabled, because it was buggy and did not work in non en-us languages at all.
The reason is that I can't find a way to properly specify a range using regex that works in multiple languages.
Help would really be appreciated.
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.