Git Product home page Git Product logo

fubuki's People

Contributors

sawawai avatar staed avatar

Watchers

 avatar  avatar  avatar  avatar

fubuki's Issues

Timing issues upon operating in multiple servers at once

Once added to multiple servers, the bot frequently, but not always, runs into ETIMEDOUT and UnhandledPromiseRejection errors.

The specific error logs are:
(node:xxxx) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Forbidden
(node:xxxx) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

and

Request Failed: RequestError: Error: connect ETIMEDOUT [IP_ADDRESS:PORT]

Sometimes, but not always, this error is accompanied by resource starvation. Sending an SIGINT signal to the process to interrupt will fix the blockage.

Quote add does not work properly with Usernames with spaces and @mentions

As cmds is an array of the message send separated by spaces, the username with spaces will be split across multiple array elements. A possible fix for this is to not use cmds to derive the username but instead to use the author property in the message object (from discord.js) passed in to get the username.

The @mentions of discord have a special format of <@xxxxxx> where xxxxxx is the user id. A possible solution to this is to use regex to detect <@xxxxx>, perhaps of /<@\d+>/. Once detected, trim off the preceding <@ and following >. Now that a ID is isolated, you can retrieve a TextChannel object from the given message object. Call the method members() on the TextChannel object which will return a Collection (an extended Map) in the form of <id, member object>. Iterate to match and use the member object to derive the username.

Add playback from internet radio

Some possible internet radio to use are R/a/dio, Eden, Listen.moe, and JPopsuki. The playback should be done using the simple command [!listen] and have a way to cycle through the radio list.

Playback from radios could potentially be combined with playback from the Bot's own song stash via queuing.

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.