kalebhermes / swdice-discord Goto Github PK
View Code? Open in Web Editor NEWRoll dice for Fantasy Flight's Star Wars RPG in Discord
Roll dice for Fantasy Flight's Star Wars RPG in Discord
It would be cool if you could keep track of your sessions destiny pool using the bot. This can be keep track of per chat channel, and be reset after 8 hours of no interaction.
Something like the following
Note: DP can be substituted for 'Destiny Pool' in any command.
Command | Output | Comment |
---|---|---|
Set Destiny Pool 7f | Destiny Pool Generated. ⚪️ ⚪️ ⚪️ ⚫️ ⚫️ ⚫️ ⚫️ |
generates 7 random Force Die rolls |
Set Destiny Pool 6f + 1W | generates 6 random Force Die Rolls and added 1 White Pip | |
Set Destiny Pool 3W4B | Sets pool at 3 White Pips and 4 Black Pips | |
Get Destiny Pool | ⚪️ ⚪️ ⚪️ ⚫️ ⚫️ ⚫️ ⚫️ | Outputs the current Destiny Pool |
Flip Black | ⚪️ ⚪️ ⚪️ ⚪️ ⚫️ ⚫️ ⚫️ | Flips One Black Pip to a White Pop and prints current Destiny Pool |
Flip 2 White | ⚪️ ⚪️ ⚫️ ⚫️ ⚫️ ⚫️ ⚫️ | Flips Two (2) White Pips to Black Pips and prints current Destiny Pool |
Reset Destiny Pool | Destiny Pool Reset | Sets the values of current Destiny Pool to null |
We need to figure out how to set the emoji on a per-server basis so that everyone can use them without needing to install and run their own bot.
We need to have a link to the images that we're using, or we need to make our own. Copyright, amiright?
Possible to have bot only respond when given the proper commands?
e.g. the bot only responding when you type /roll instead of responding to everything
Things that still need to be documented
I added the command to restart swdice in /etc/cron.daily
The command file is restart-sw-dice and looks like
sudo systemctl restart swdice
There are a few occasions where you'd want to make a regular die roll. Most often a 1d100 roll for Crits and so forth. We should add the ability to roll any xdX in addition to Star Wars dice.
Documentation for the Readme
The bot takes a few steps to get up and running. These steps should be documented.
Installing Node.js and Discord.js
Creating a Discord Bot
Adding the emoji to the server
Setting the emoji codes properly in the code.
Running the service
Right now, there's no limitation on the number of dice you can roll.
/roll 1000y is a valid command. This should be limited to something like 6 or so.
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.