Giter VIP home page Giter VIP logo

erela.js's Introduction

I'm Chrissy (Tomato), mainly a Discord Bot Developer! Working since 2017 on Bots πŸš€

I have quitted the tomato area and now work on a hobby project called "Mivator" My new Discord: https://discord.gg/5dUb7M2qCj


What happend with the Milrato Bot-Shop?

I stopped working on any bot shop related topics, due to lack of time and motivation. However my old admin (xenix) continued it: https://discord.gg/milratoshop feel free to join!


  • πŸ”­ When I spend time on my PC, I either game, code or watch YouTube. Elsewise I am working IRL or spending time with my new Familiy & Friends!

  • 🌱 I’m currently coding in TypeScript, JavaScript and C#. My fav. dbs are SQL based.

  • ❓ I am in love with coding Discord Bots, I also love helping!.


SUPPORT ME, OG-Milrato Development and Mivator!

You can support me by...

Credits

You can freely use any projects of me, for non-commercial use, as long as you credit my github account / discord server / discord account.


Some History-Info: Old Account, old Habits, old Life:

erela.js's People

Contributors

3raphat avatar customtag avatar djohts avatar tomato6966 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

erela.js's Issues

Switch to poru

you are making milarato 2 right so erela.js no longer maintained so change to poru it also like erela.js but it get more update like its the next erela.js(poru) i suggest to switch to poru https://www.npmjs.com/package/poru

finalQuery.match is not a function

at Spotify. (F:\\node_modules\erela.js-spotify\dist\plugin.js:79:51)
at Generator.next ()
at F:\\node_modules\erela.js-spotify\dist\plugin.js:8:71
at new Promise ()
at __awaiter (F:\\node_modules\erela.js-spotify\dist\plugin.js:4:12)

How to reduce Memory Usage?

I created a branche, just for users who aim for low-memory usage, yet still want the high features from erela.js!

https://github.com/Tomato6966/erela.js/tree/slim

Honestly, if you look for most extreme low memory usage possible, use a different wrapper, or adjust it yourself. but the slim branche will allow you to save around 15-25% of memory usage (due to track + queue is trimmed a ton)

Also if you want to save memory usage for tracks, here is something you can also do:
the #requester which you provide by (message.author / interaction.user for example or interaction.member) can be anything you want, it's local for the client, so you know who requested what track, do something like that:

export function transformRequester(requester) {
    if(!requester) return null;
    return {
        id: requester.id,
        username: requester.username,
        avatar: requester.displayAvatarURL(),
    } 
    // example Use: 
    //      embed.addFields([ { name: `Requester`, value: `${track.requester.username} | Mention: <@${track.requester.id}>` } ])
    //           .setFooter({ text: `Requester-Id: ${track.requester.id}`, iconUrl: track.requester.avatar })
}

Unused variable

onlyAllowAllowedLinks variable isnt used and I cant use the skybot lavalink plugin to play sounds from additional sources.

Headers timeout from undici

Sometimes we get "Headers Timeout Error" from undici which is being used here, is there any solution you could implement for this, or an alternative to undici that could be used?

Players disappearing from voice channel

Players disappearing from voice channel after 12 + hours player connect to channel
when go that channel and play songs it says no player detected but i destory the players using player.destroy() it will destory
after usering commands it worked but its so annoying becase if user use command that guilch time it will not work at all

but in https://github.com/Deivu/Shoukaku i see lot of music bot using it becase of player disappearing form vc this bug is original erela.js
but i try to convert erela code it shoukaku but its too deficalt for me (i try this on sharded bot)

i see you building erela.js i suggest fix that players disappearing vc

Sessions resuming

Hey, does this package support sessions resuming and if so, could you show me an example of how it works? If not, is session resuming planned and do you have any expectations about when could that be released?

finalQuery.match is not a function

There is a problem some where in the codes and I can't manages to find it.

its giving me the error that finalQuery.match is not a function this only happens when i'm trying to play a attachment that I upload via the command like this.

Uploading the file via command
image

so tomato it would be nice if you can find this error for me some how.

Error Down below
image

Update

Today is Milrato update right soo what time do you upgrade bot
i see the channel but time is passed now @Tomato6966

Bot on disconnect doesn't destroy the player

Steps to reproduce

For example i have a player (bot) in the vc if you disconnect the bot it will act as it still in the voice channel
and if you see the player channel is brings null instead of channel id

the erela.js has been archived...

the erela.js has been archived...
but please in this project, don't archive, we will migrating the erela.js to this project. please.

Spotify tracks unable to load (Lavalink V2)

Hi there, I seem to be having an issue with loading spotify songs through erela.js, i've actually used a plugin called better-erela.js-spotify for handling the UnresolvedTrack problem the original erela.js had but now it seems like that it doesn't add the song into the queue.

The error that i get whenever i try to load a song is this:
image

I really have no idea what to do to fix this and this affects both the chat command and slash command that were made for playing the music

I can't install the package

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent An unknown git error occurred
npm ERR! enoent This is related to npm not being able to find a file.

Bot disconnect from vc randomly and throwing socketClosed event

Im having with this version of erela.js only this little problem ( that I dont have with other lib ) : when the bot stay for a long time in vc will throw randomly the "closedSocket" event . So I tired to console.log(payload) and this is what I recive :

{"code":4006,"reason":"Session is no longer valid.","byRemote":true,"guildId":"827229827769171979","op":"event", "type":"WebSocketClosedEvent"} sometimes also the {"code":4014,"reason":"Disconnected.","byRemote":true,"guildId":"810121460932411392","op":"event","type":"WebSocketClosedEvent"} .

Any idea why this happen ?

Strange behavior

KΓ©pernyΕ‘kΓ©p 2023-05-05 233946
Sometimes it switch back to websocket. What am I doing wrong?

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.