Git Product home page Git Product logo

autovoicechannelbot's People

Contributors

loggel avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

priemum marchadev

autovoicechannelbot's Issues

Illegal removal of voice channels

When the user enters a voice channel (which creates other voice channels, let it be A), the bot moves the user to the newly created channel (let it be B). So far, everything is fine.
Next, when the user switches from the created channel (B) to some other (let it be C) - the created channel (B) is deleted. So far, everything is fine.
But when the user leaves that channel (C), it is also deleted by the bot.

Cannot read properties of undefined (reading 'cache')

I don't know how, but here

/var/servers/AutoVoiceChannelBot/node_modules/discord.js/src/client/actions/MessageCreate.js:11
      const existing = channel.messages.cache.get(data.id);
                                        ^
TypeError: Cannot read properties of undefined (reading 'cache')
    at MessageCreateAction.handle (/var/servers/AutoVoiceChannelBot/node_modules/discord.js/src/client/actions/MessageCreate.js:11:41)
    at module.exports [as MESSAGE_CREATE] (/var/servers/AutoVoiceChannelBot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (/var/servers/AutoVoiceChannelBot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
    at WebSocketShard.onPacket (/var/servers/AutoVoiceChannelBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
    at WebSocketShard.onMessage (/var/servers/AutoVoiceChannelBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
    at WebSocket.onMessage (/var/servers/AutoVoiceChannelBot/node_modules/ws/lib/event-target.js:132:16)
    at WebSocket.emit (node:events:513:28)
    at Receiver.receiverOnMessage (/var/servers/AutoVoiceChannelBot/node_modules/ws/lib/websocket.js:1068:20)
    at Receiver.emit (node:events:513:28)
    at Receiver.dataMessage (/var/servers/AutoVoiceChannelBot/node_modules/ws/lib/receiver.js:517:14)
Node.js v18.14.2

Voice Channel Lock ?

Hi,

I like your bot very much! Congrats for the progress.

Is it possible to make Voice Channels lockable ?

Maybe, a user that joins a channel wants to restrict access ?

Maybe some simple commands ...

!lock - locks channel if user.id got any channel created with it's name
!unlock - unlock channel if it is already locked.
!permit @user - permit tagged user to join if channel locked.
!restrict @user - restrict tagged user if it was permitted earlier.

Thanks.

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.