aoijs / aoi.js

aoi.js - The most advanced string-based package to create a Discord Bot fast and powerful.
https://aoi.js.org
Apache License 2.0
342 stars 134 forks source link

Bug: Aoi.Music #446

Closed pythoniaweb closed 1 year ago

pythoniaweb commented 1 year ago

Bug Type

Function

Bugged Function

module.exports = {
  name: "play",
  $if: "old", //enabling pseudo $if
  code: `
    $playTrack[$message;youtube]

    $if[$hasPlayer==false]
        $joinVc
    $endif

    $onlyif[($voiceId[$clientId]!=)&&($voiceId[$clientId]==$voiceId);you are not in the same voice channel]
    $onlyif[$voiceId!=;join a voice channel before using play cmd]
    `,
};

--- index.js
const { AoiVoice, PlayerEvents, PluginName, Cacher, Filter } = require ("@akarui/aoi.music");
const voice = new AoiVoice(bot, {
    devOptions: {
        debug: false,
    },
    searchOptions: {
        // soundcloudClientId: "Sound Cloud Id",
        youtubegl: "US",
        youtubeClient: "WEB" | "ANDROID" | "YTMUSIC",
    },
    requestOptions: {
        offsetTimeout: 0,
        soundcloudLikeTrackLimit: 200,
        youtubePlaylistLimit: 200,
    },
});
// Adds a cacher plugin
voice.addPlugin(PluginName.Cacher, new Cacher("disk"));
// Adds a filter plugin
voice.bindExecutor(bot.functionManager.interpreter);
voice.addEvent(PlayerEvents.TRACK_START);

Version of aoi.js

v6.0.1

Version of Node.js

v19.6.0 (Current)

Excepted Output

Nothing in console after 1m of playing music the bot (music is 5min long) he just leave channel

Relevant log output

Nothing in console after 1m of playing music the bot (music is 5min long) he just leave channel

Code of Conduct

pythoniaweb commented 1 year ago

and yes someone can unban me from discord i got 7d ban but bot is bugged an left 10 ays and im still banned (PlurrYT#6001)

pythoniaweb commented 1 year ago

@Leref

USERSATOSHI commented 1 year ago

well update the @akarui/aoi.music pkg to latest

pythoniaweb commented 1 year ago

Its latest

pythoniaweb commented 1 year ago

nvm i fixed it somehow