Giter VIP home page Giter VIP logo

schubert's Introduction

This is a discord bot which gives users a role when they are in a voice channel. It can be configured as a role for a whole guild, or per-channel.

Usage

To configure a voice channel role, type ^vcrole @role [voice-channel-id]. you can also use the role ID. If voice-channel-id is omitted, the role will be for all voice channels in the server.

To clear a voice channel role type ^vcrole clear [voice-channel-id]. If voice-channel-id is omitted, the role will be for all voice channels in the server.

If you ever need to see these instructions, use the command ^help.

Links

Invite to your server
Website
Top.gg
Discord Bots
Support Server

DigitalOcean Referral Badge

schubert's People

Contributors

beatso avatar dependabot-preview[bot] avatar

Stargazers

Aidan avatar  avatar

Watchers

 avatar

schubert's Issues

error on launch

PS C:\Users\Root\Desktop\Schubert-main> npm start

[email protected] start C:\Users\Root\Desktop\Schubert-main

node index.js

bot running
(node:1856) UnhandledPromiseRejectionWarning: TypeError: Only absolute URLs are supported
at getNodeRequestOptions (C:\Users\Root\Desktop\Schubert-main\node_modules\node-fetch\lib\index.js:1305:9)
at C:\Users\Root\Desktop\Schubert-main\node_modules\node-fetch\lib\index.js:1410:19
at new Promise ()
at fetch (C:\Users\Root\Desktop\Schubert-main\node_modules\node-fetch\lib\index.js:1407:9)
at Client.set (C:\Users\Root\Desktop\Schubert-main\node_modules@replit\database\index.js:57:11)
at Client. (C:\Users\Root\Desktop\Schubert-main\index.js:77:14)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (C:\Users\Root\Desktop\Schubert-main\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\Root\Desktop\Schubert-main\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\Root\Desktop\Schubert-main\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
(Use node --trace-warnings ... to show where the warning was created)
(node:1856) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:1856) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:1856) UnhandledPromiseRejectionWarning: TypeError: Only absolute URLs are supported
at getNodeRequestOptions (C:\Users\Root\Desktop\Schubert-main\node_modules\node-fetch\lib\index.js:1305:9)
at C:\Users\Root\Desktop\Schubert-main\node_modules\node-fetch\lib\index.js:1410:19
at new Promise ()
at fetch (C:\Users\Root\Desktop\Schubert-main\node_modules\node-fetch\lib\index.js:1407:9)
at Client.list (C:\Users\Root\Desktop\Schubert-main\node_modules@replit\database\index.js:79:18)
at Client. (C:\Users\Root\Desktop\Schubert-main\index.js:113:11)
at Client.emit (events.js:315:20)
at VoiceStateUpdate.handle (C:\Users\Root\Desktop\Schubert-main\node_modules\discord.js\src\client\actions\VoiceStateUpdate.js:40:14)
at Object.module.exports [as VOICE_STATE_UPDATE] (C:\Users\Root\Desktop\Schubert-main\node_modules\discord.js\src\client\websocket\handlers\VOICE_STATE_UPDATE.js:4:35)
at WebSocketManager.handlePacket (C:\Users\Root\Desktop\Schubert-main\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
(node:1856) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)

After installing the role and when entering the voice channel, the bot gives an error

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.