twonirwana / discorddicebot Goto Github PK
View Code? Open in Web Editor NEWA dice rolling bot for Discord, that uses buttons and provides image for the rolled dice.
License: GNU Affero General Public License v3.0
A dice rolling bot for Discord, that uses buttons and provides image for the rolled dice.
License: GNU Affero General Public License v3.0
I would like the following dice calculator layout added to quickstart. It seems to work best for games which use the d20 for actions. (too many game systems (and editions thereof) to count.)
/sum_custom_set start buttons: 7;8;9;+;-;4;5;6;(;);1;2;3;d;r;0;00;d20;k;l;(2d20k1)@adv;(2d20L1)@dis; always_sum_result: true hide_expression_in_answer: false answer_format: full dice_image_style: polyhedral_3d dice_image_color: red_and_white
The 2 weakest buttons being ADV and DIS, but due to 5e's popularity, and also that players seem to have started using the advantage rules for circumstance bonuses/penalties in other games, it seemed worth having them in the default.
The layout is also intentional. Placing the d20 next to the roll button, for example.
And the addition of the 'r' is important for being able to roll things in parentheses multiple times (a weapon that is (1d8+1), for example.
As we are clicking, or typing out, strings of characters, it would be nice to have a /roll_again command.
/ra
Which would repeat the last roll performed by that individual.
polyhedral_draw_color uses the color input to generate the images. There should be a darker and brighter variant for all existing color options.
Hey, I really love the button thing, makes it so much easier to use for my players. But, it's a pain to run sixes explode / compound with. Could you add that as an option for the Shadow Run /count successes command. It'd be a great help.
And/or add for the /custom dice start target pool command. Either would work.
Hi there!
Loved your work here! Amazing bot.
I wanted to translate the commands to add localization to Brazillian Portuguese, but I haven`t found a lang folder or localization files.
Would it be something possible to do?
It would be nice to have image options for at least all 6 of the primary colors with the white numbers, and not just red.
Players are finding them confusing. (Trying to remember which is which.)
What I suggest:
Rename:
a.) "Dungeons & Dragons 5e" to "Dungeons & Dragons 5e - Autoroll dice (without images)"
b.) "Dungeons & Dragons 5e with Dice Images" to "Dungeons & Dragons 5e - Autoroll dice"
c.) "Dungeons & Dragons 5e Calculator" to "Dungeons & Dragons 5e Calculator" (name stays the same)
d.) "Dungeons & Dragons 5e Calculator 2" to "Dungeons & Dragons 5e"
(and then re-order alphabetically)
I think these may be clearer, and may nudge users to try out the autoroll options.
Text for the discord app directory:
This bot is for rolling dice in discord.
The bot needs to be configured with a slash command in a channel and then provides a message with a buttons.
Upon clicking on a button the bot will post the result and move the message with the buttons to the bottom of the channel.
If the message is pined, then it will only be copied and not moved.
This allows it to roll dice without typing commands and thereby improves usability, especially for touchscreen users.
The bot supports Discord thread (the button message must be added after the thread creation), forum, Text in Voice, and it is possible to send the answer in a different channel.
It can provide images of the dice roll results and it is possible to configure channel or user specific aliases.
The bot need the following permission:
create application commands (which are needed to control the bot)
send message and send message in threads (for the dice buttons and results)
embed links (display of structured answers)
read message history (to detect if a button message was pinned)
If you can't see the bots messages: The link preview in the discord setting must be activated to see the roll results
Quickstart
Type `/quickstart system' and the bot will offer a list of ready to play dice sets. Simple select a system out of the list or keep typing to search and filter in the list. Please let me know if you’re missing an RPG system in the quickstart list
The following properties:
rpg.system.command.preset.CANDELA_OBSCURA.expression=+2d6l1 col 'blue'@None;+1d6@1;+2d6@2;+3d6@3;+4d6@4;+5d6@5;+6d6@6;+1d6 col 'purple_white'@⭐ Add Gilded?
rpg.system.command.preset.PROWLERS_PARAGONS.expression=val('$r',{number of dice:1<=>12}d6),val('$total',replace('$r', [1/3/5], 0, [2/4], 1, [6], 2)=), '$total'_' successes'
rpg.system.command.preset.BLUEBEARD_BRIDE.expression=val('$roll',(2d6)) val('$mod',{Modifier:-1<=>1}) val('$total',('$roll'+'$mod')=) if('$total'>=?10, 'Hit', '$total'<=?6, 'Miss', 'Mitigated Hit')
sum_dice_set.option.hiddeExpression.description=Show the label of the buttons and not the dice expression for the answer
sum_dice_set.option.hideExpression.name=hide_expression
Additionally to the existing methods to combine existing dice images to a result image there should be a method that get the dice type and the result and draws a dice image. This should be later be extended to get a color parameter, to create images of different colored dice.
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.