Code Monkey home page Code Monkey logo

swdice-discord's Issues

Add Destiny Pool

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

Set emoji in code

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.

Add source for images

We need to have a link to the images that we're using, or we need to make our own. Copyright, amiright?

Responds to every input

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

Finish Documentation

Things that still need to be documented

  • Adding emoji ID's to code
  • Setting up on a server

Cron

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

Add /roll xdX functionality.

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.

Write Documentation

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

Stop Crazy Dice Numbers

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.