Git Product home page Git Product logo

discord-dragon-bot's People

Stargazers

 avatar

Watchers

 avatar

Forkers

00-00-00-11

discord-dragon-bot's Issues

Rate-limiting causes interminent loop for async requests

When two or more async requests, such as sending or editing messages, cause rate-limiting, they can prevent each other from waiting the full duration of the retry cooldown.

To fix this so that the bot does not miss messages, I may have to create a queue of requests that the client can fulfill sequentially, only while rate-limiting does not interfere. It will have to wrap the PromiseClient's await method.

Slot Machine game

Need to brainstorm the slot machine game's specifics: what kinds of items, how valuable are they, are there special combos, and should there be a cooldown?

Ideas:

  • Slot machine will have traditional items like various fruits and 7's, as well as the dragon being the jackpot item.
  • Cost will be a minimum of 5 per spin, or can be wagered higher if the user chooses.
  • Maybe have a separate video slots game (5-column slots with added bonuses)

Subcommand listing exceeds text limit

Commands like pokemon and image have many many subcommands, and listing them all may throw an error stating the message size exceeds 2000 characters. Maybe there's some way I can split the help message into parts and send each consecutively, but I think this may be a bit easy to abuse...

Possible workaround: improve PromiseClient.prototype.send() so that it can send up to 5 "chunks" for a large message, with a hard limit at 10000 characters. However, this will mean the bot may be rate-limited more often.

Sessions need a permission API

Some background sessions get in the way of discussions by intrusively firing on messages from any channel. It would be nice to extend the session framework so that one can opt out certain channels from their use.

TODO: Implement a sessions command that, like the commands command, modifies the permission settings of sessions.

Furthermore: May need to create a new permissions table for sessions in order to remember which channels/users opted out.

Seam-carving implementation needed

Going to make a magik command like with NotSoBot, but I need to make a javascript implementation of liquid_rescale which uses seam-carving.

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.