Git Product home page Git Product logo

shinebot's Issues

unspaced emoji cause issues

emoji placed in TextCommands are not properly separated from other characters if they are not padded with whitespace. A single unpadded emoji in quotes, however, does not cause issues. Look into regexes for unicode to fix this, although it will require an additional layer of parsing.

waiting messages not sent properly if cooldown isn't ready

command cooldown should only apply to manually calling the command. E.g. if a command has a 60s cooldown, and it consists of sending 2 messages 10 seconds apart, the second message should send after 10 seconds, even though the command is still on cooldown.

negative numbers parsed as flags

If a user calls a command, and attempts to include a negative number as one of its arguments, the number is instead parsed as a flag when it is passed to the command. However, flags are as of yet unused by any commands, and may be removed entirely. Likewise, negative numbers are not a valid argument for any existing command, and I have nothing in mind that would change this.

If necessary, fix is relatively simple. Just flip order of flags and numbers in the parse loop, along with recognizing numbers preceded by "-" as numbers. Will fix if I decide to keep flags around. Currently causes no issues.

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.