GithubHelp home page GithubHelp logo

dicebot's People

Contributors

iknowthatiknownothin avatar leftbones avatar

Watchers

 avatar

dicebot's Issues

Move bot settings to a separate file

Currently bot settings are at the top of the dicebot.py file, they should be moved to a separate settings file. It would make for easier editing and for easier updating, if the bot is updated and code in dicebot.py is changed (very likely) the user's settings won't be overwritten.

If the bot is updated and there are new settings that aren't found in the user's settings file, the user's old settings file will be backed up and a new settings file will be created, then the user can easily copy over their old settings to the new one.

Lexer ignores symbols in flavor text

No error, just doesn't lex them at all.

Current example:

[1d20 to hit Mol'Rek!]
You rolled: 18 to hit MolRek

Requested:

[1d20 to hit Mol'Rek!]
You rolled: 18 to hit Mol'Rek!

Add advantage/disadvantage modifier to rolls

Example (markdown would be applied, like bold and such)

Advantage:
[1d20 (A) to hit]
You rolled: 18 to hit (A: 13, **18**)

Disadvantage:
[1d20 (D) to hit]
You rolled: 13 to hit (D: **13**, 18)

With modifier:
[1d20+5 (A) to hit]
You rolled: 23 (18+5) to hit (A: 13, **18**)

Without flavor text:
[1d20-5 (D) to hit]
You rolled: 8 (13-5)(D: **13**, 18)

Empty commands return an empty roll response

Having no commands in your comment gives the proper response, but sending an empty command causes the bot to respond with an empty roll.

Example:

Comment: []
Response: You rolled:

Add commas to really large numbers

People usually don't roll really large numbers, but in case they do...

Current example:

[1d1000000]
You rolled: 458331

Requested:

[1d1000000]
You rolled: 458,331

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.