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
329 stars 130 forks source link

Bug: node:15512 [DEP0137] #601

Closed valentineu0 closed 2 months ago

valentineu0 commented 3 months ago

Bug Type

Command Prompt Error

Bugged Function

module.exports = [{
    name: "voiceStateUpdate",
    type: "voiceStateUpdate",
    channel: "somechannelID",
    $if: "old",
    code: `
    $if[$authorID!=$clientID]
        $if[$newState[deaf]==$oldState[deaf]]
            $if[$newState[mute]==$oldState[mute]]                      
                $if[$voiceID[$clientID]!=]
                    $setUserVar[lastConnectedVoiceChannel;$voiceID[$authorID]]
                    $title[1;<:valentine_account_voice:1243984171399905301> Sesli Kanala Bağlantı Kuruldu]
                    $description[1;<@$authorID> **$userTag[$authorID]** bir sesli kanala katıldı.]
                    $addField[1;Bağlandığı Kanal;<#$voiceID[$authorID]> — $channelName[$voiceID[$authorID]]]
                    $addTimestamp
                    $color[1;$getGuildVar[color]]
                $else
                    $title[1;<:valentine_account_voice_off:1243984151036690492> Sesli Kanaldan Bağlantısı Sonlandı]
                    $description[1;<@$authorID> **$userTag[$authorID]** bir sesli kanaldan ayrıldı.]
                    $addField[1;Ayrıldığı Kanal;<#$getUserVar[lastConnectedVoiceChannel]> — $channelName[$getUserVar[lastConnectedVoiceChannel]]]
                    $addTimestamp
                    $color[1;$getGuildVar[color]]
                $endif
            $endif
        $endif
    $endif
    `
}];

Version of aoi.js

v6.7.1

Version of Node.js

v20.10.0 (LTS)

Excepted Output

Not to receive such an error text in the command prompt window.

Relevant log output

node:15512) Warning: Closing file descriptor 25 on garbage collection
(node:15512) [DEP0137] DeprecationWarning: Closing a FileHandle object on garbage collection is 
deprecated. Please close FileHandle objects explicitly using FileHandle.prototype.close(). In the future, an error will be thrown if a file descriptor is closed during garbage collection.     
(node:15512) Warning: Closing file descriptor 26 on garbage collection

Code of Conduct

valentineu0 commented 3 months ago

This error text can be displayed at the command prompt every time the voiceStateUpdate event is triggered. image

Faf4a commented 2 months ago

wrong repo, up to @USERSATOSHI

open issue at https://github.com/aoijs/aoi.db

valentineu0 commented 2 months ago

aoijs/aoi.db/issues/8 it was reopened as.