Coder Social home page Coder Social logo

midspike / iris-utilities Goto Github PK

View Code? Open in Web Editor NEW
41.0 41.0 7.0 5.35 MB

I.R.I.S Utilities is a multi-purpose discord bot that allows you to play music, have fun, and perform various other utility-related things.

Home Page: https://iris-utilities.com/

License: Other

TypeScript 100.00%
discord-bot iris-utilities

iris-utilities's Issues

Trace: unhandledRejection at: RangeError: offset is out of bounds

The issue occurs randomly after I.R.I.S. has played ~10 or more things (using YouTube).

Once the issue has occurred, it will always happen every time something is played via YouTube.

----------------------------------------------------------------------------------------------------------------
Fri Nov 13 2020 12:24:10 GMT-0500
Trace: unhandledRejection at: RangeError: offset is out of bounds
    at Uint16Array.set (<anonymous>)
    at OpusScript.encode (C:\Users\tyler\node_modules\opusscript\index.js:51:16)
    at Encoder._encode (C:\Users\tyler\Desktop\iris-utilities\node_modules\prism-media\src\opus\Opus.js:60:25)
    at Encoder._transform (C:\Users\tyler\Desktop\iris-utilities\node_modules\prism-media\src\opus\Opus.js:143:30)
    at Encoder.Transform._read (_stream_transform.js:205:10)
    at Encoder.Transform._write (_stream_transform.js:193:12)
    at writeOrBuffer (_stream_writable.js:352:12)
    at Encoder.Writable.write (_stream_writable.js:303:10)
    at VolumeTransformer.ondata (_stream_readable.js:717:22)
    at VolumeTransformer.emit (events.js:314:20) Promise {
  <rejected> RangeError: offset is out of bounds
      at Uint16Array.set (<anonymous>)
      at OpusScript.encode (C:\Users\tyler\node_modules\opusscript\index.js:51:16)
      at Encoder._encode (C:\Users\tyler\Desktop\iris-utilities\node_modules\prism-media\src\opus\Opus.js:60:25)
      at Encoder._transform (C:\Users\tyler\Desktop\iris-utilities\node_modules\prism-media\src\opus\Opus.js:143:30)
      at Encoder.Transform._read (_stream_transform.js:205:10)
      at Encoder.Transform._write (_stream_transform.js:193:12)
      at writeOrBuffer (_stream_writable.js:352:12)
      at Encoder.Writable.write (_stream_writable.js:303:10)
      at VolumeTransformer.ondata (_stream_readable.js:717:22)
      at VolumeTransformer.emit (events.js:314:20)
}
    at process.<anonymous> (C:\Users\tyler\Desktop\iris-utilities\index.js:1157:13)
    at process.emit (events.js:314:20)
    at processPromiseRejections (internal/process/promises.js:245:33)
    at processTicksAndRejections (internal/process/task_queues.js:94:32)
----------------------------------------------------------------------------------------------------------------

Randomly Paused Music

The bot Stopped the music randomly like a minute into it and said someone paused it even though that someone didnt pause it then the someone resumed the music and it wouldn't play so they had to replay the music.

Volume lowers back down with looped song.

Describe the bug
With a looped song in the queue after it loops again the volume resets back down to normal after having it set at 100
To Reproduce
Play song,
Set volume
Loop
Wait for the song to end and to play again and hear the volume drop.

Expected behavior
volume stays the same for the looped song.
Screenshots
N/A

Additional context
N/A

Complete rewrite of codebase

About

It has come to my attention that I.R.I.S. is in need of a complete rewrite from the ground up.

Reasoning

Several factors have led me to this conclusion, such as:

  • Discord.js v13 coming out soon
  • Discord.js v13 dropping voice support
  • Message Content Access Deprecation for Verified Bots
  • Discord forcing slash commands onto verified bots (see above)
  • needing an actual database (I have chosen MongoDB for the rewrite)
  • overall poor code quality in retrospect

Information

Currently I am undertaking this task in a private repository (and private discord bot).
I will make the source-code available once it is ready to run under the I.R.I.S. Utilities discord bot.


Edit: Status Update

Lockdown

When I.R.I.S is in lockdown mode, if a user tries to run a command while in lockdown she should send a message saying that she is in lockdown.

iHeart Radio

I would love to see iHeart Radio integrated into I.R.I.S I have found a node package that I think would work great. Take your time on it no need for it right now!

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.