seosaidh / torrpgbot Goto Github PK
View Code? Open in Web Editor NEWA Discord Bot that will roll and calculate results for The One Ring rpg.
License: GNU General Public License v3.0
A Discord Bot that will roll and calculate results for The One Ring rpg.
License: GNU General Public License v3.0
Currently, you must enter a skill name if you want to roll dice. In addition, the roller will always roll a feat die (or two if required) and a number of success dice and will always compare the result to some TN.
However, there are many instances where it is desirable to simply roll some arbitrary number of dice, whether it be for a magical item roll, a table roll (such as on magical item tables or hazard tables), or even just to get a random number.
To this end, a "dice" command should be added. The aliases should be "d" and "dice", and it should allow rolling arbitrary d12s and d6s and simply print the results. It should also use the dice face emojis if available.
Describe the bug
When the disadvantage option is included in a roll or adversary command, there is no indication that two feat dice were rolled and the worst kept. This could be either a logic error or simply a reporting error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be a second line below the results that includes the unused feat die. This line is present when a roll with advantage is performed, but not disadvantage.
Once the unit test framework is chosen. Implement unit tests for current code.
The code currently has middling documentation. Each class needs to have an introductory comment, and a couple of classes are missing good comments for various functions. These comments, including JavaDoc comments, need to be added to the code.
There should be a command to set the command flag. This should only set the flag for the server where the command was issued, and it should save this setting in the configuration file.
Currently, the bot token is hard-coded into the bot (and is replaced with "REDACTED" on the version on GitHub). However, it would be better to be able to load the token from a configuration file such that anyone can host their own version of the bot without having to edit the source-code.
Currently, the adversary roll will display the username of whoever issued the command, just like with a regular roll. However, this doesn't make sense. Instead, either a new field should be added to the enemy command body that contains the display name of the enemy, or the generic name "Enemy" should be used.
Currently, when a dice roll result is displayed, it prints out the numbers as regular ASCII text numbers. Replacing these numbers with emojis that represent the custom TOR dice faces is desirable.
Describe the bug
The modifier is not printed in the result string.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The flat modifier should be shown as a "+ X" (or "-X") after the dice, but before the final sum.
Additional context
Add any other context about the problem here.
The ability of the bot to load configuration from a file should be added.
This file can be in any format, although XML or JSON would be preferable.
Right now, the only configuration to store would be the command flag.
I have added black Adversary dice with read fonts, could you have the program display these icons on adversary rolls?
Update the log configuration to use a relative path instead of an absolute path.
When a roll command is issued, the name of the person who rolled is given in the results. Currently, this displays the username, not the nickname. It should be the nickname so that the player can have their character name displayed as the author of the roll.
Choose a unit test framework to include in the project that will be used to implement unit testing.
Add a HelpCommand class that will handle the command "help" or "h". It will send a private message to the user that sent the command with a detailed description of each command that the bot provides.
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.