Closed CycloneAddons closed 1 year ago
const {AoiClient} = require("aoi.js"); const {LavalinkManager} = require('lavalink-client'); const bot = new AoiClient({ token: "xxxxxxxxxxxxxxxxxxx", prefix: ".", intents: ["1","2","4","8","16","32","64","128","256","512","1024","2048","4096","8192","16384","32768","65536","1048576","2097152","Guilds","GuildMembers","GuildModeration","GuildBans","GuildEmojisAndStickers","GuildIntegrations","GuildWebhooks","GuildInvites","GuildVoiceStates","GuildPresences","GuildMessages","GuildMessageReactions","GuildMessageTyping","DirectMessages","DirectMessageReactions","DirectMessageTyping","MessageContent","GuildScheduledEvents","AutoModerationConfiguration","AutoModerationExecution"], events: ['onReactionAdd','onReactionRemove','onLeave','onJoin','onGuildJoin','onGuildLeave','onBanAdd','onTypingStart','onChannelDelete','onChannelUpdate','onChannelCreate','onVoiceStateUpdate','onInteractionCreate','onRoleUpdate','onMemberUpdate','onRoleDelete','onRoleCreate','onBanRemove','onMessage','onMessageUpdate','onPresenceUpdate','onVoiceStateUpdate'], database: { type: "aoi.db", db: require("@akarui/aoi.db"), tables: ["main"], path: "./database/", extraOptions: { dbType: "KeyValue" } } }); bot.readyCommand({ code:` $djseval[ const {LavalinkManager} = require('lavalink-client'); client.defaultVolume = 100; client.lavalink = new LavalinkManager({ nodes: [ { authorization: "stonemusicgay", host: "54.38.198.23", port: 88, id: "stonemusicgay", secure: false, requestTimeout: 10000, } ], sendToShard: (guildId, payload) => client.guilds.cache.get(guildId)?.shard?.send(payload), autoSkip: true, client: { id: "1076412331896086559", username: "Cycloid Beta" }, playerOptions: { applyVolumeAsFilter: false, clientBasedPositionUpdateInterval: 50, defaultSearchPlatform: "ytmsearch", volumeDecrementer: 0.75, onDisconnect: { autoReconnect: true, destroyPlayer: false }, useUnresolvedData: true }, queueOptions: { maxPreviousTracks: 10, }, }); (async() => { await client.lavalink.init({ ...client.user, shards: "auto" }); })(); ;true]` }); bot.command({ name: "ev", code: `$eval[$message]` });
Please show the entire node error.