Code Monkey home page Code Monkey logo

saiteja-madha / discord-js-bot Goto Github PK

View Code? Open in Web Editor NEW
616.0 22.0 630.0 34.72 MB

๐Ÿค– Multipurpose discord bot built using discord.js v14 with moderation, music, ticketing, translation, and much more

Home Page: https://strangedocs.hostz.me

License: Apache License 2.0

JavaScript 59.44% Less 24.84% CSS 12.00% EJS 3.71% Shell 0.01% Procfile 0.01%
discord-js discord-bot automod moderation music discord-js-v14 discordjs multipurpose-discord-bot slash-commands bot

discord-js-bot's Introduction


Discord.js v14 Bot
Discord.js v14 Bot

Admin, AutoMod, Anime, Economy, Fun, Giveaway, Image, Invite, Information, Moderation, Music, Owner, Social, Statistics, Suggestion, Ticket, Utility and More...


Resource Links โ€ข Prerequisites โ€ข Getting Started โ€ข Features โ€ข Contributing


๐Ÿ”— Resource Links

๐Ÿ“ฆ Prerequisites

๐Ÿš€ Getting Started

  • Open the terminal and run the following commands
git clone https://github.com/saiteja-madha/discord-js-bot.git
cd discord-js-bot
npm install
  • Wait for all the dependencies to be installed
  • Rename .env.example to .env and fill the values
  • Optionally edit config.js
  • Type npm run start to start the bot

If you need any additional help, make sure to read our guides here


โœจ Features โœจ

๐Ÿ“ก Advanced Dashboard

  • Manage your servers and make your server-specific settings!
  • Make custom adjustments easy!

๐Ÿ›‘ Powerful Moderation:

  • Moderation Commands.
    Commands: ban, unban, timeout, voice moderation, deafen, move, warn, setnick, ...
  • Multi-Function Purge Commands.
    Commands: purge, purge attach, purge bots, purge links, purge token, purge user, ...

๐Ÿค– Auto Moderation:

  • Anti system
    Commands: anti ghostping, anti spam, anti massmention, ...
  • Auto Delete system
    Commands: autodelete attachments, autodelete invites, autodelete links, autodelete maxlines, ...
  • AutoMod system
    Commands: automod status, automod strikes, automod action, automod debug, automod whitelist, ...

โš™๏ธ Admin Configuration:

  • Let a bot be the server's assistant!
    Commands: autorole, farewell, welcome, counters, flag translation, reaction roles, ...
  • Make custom settings for your own server.
    Commands: setprefix, maxwarns, modlog...

๐Ÿ’ Information Gathering:

  • User Context Interactions
  • Advanced Information Get deep information about a user, channel, role, etc.

๐ŸŽต Music:

  • LossLess Music! Enjoy high quality lossless music
  • Multi-Platform Play music from YouTube, SoundCloud, Spotify, and more
  • Filters Apply filters to your music and spice it up

๐ŸŽ‰ Giveaways:

  • Easy to use Create giveaways with ease
  • Role specific giveaways
  • Customizable Customize the giveaway to your liking
  • Limitless Create unlimited giveaways

๐Ÿซ‚ Social Content:

  • You Have A CV In Each Server-Specific Bot!
    Commands: rep, rep view...
  • Do You Love Someone?
    Commands: rep give...

๐ŸŽŸ Ticket System:

  • Make Supporting Members A Breeze With Tickets!
    Highly customizable ticket system with staff roles
  • Multiple Categories
    Don't Want The Tickets To Be Everywhere? Categorize them using select menus

๐Ÿ“‰ Stats Tracking:

  • Levelling Track your server's activity with a level system
  • Leaderboards See who is the most active user in your server
  • Customizable System Configure the levelup message, rank cards to your liking

๐Ÿ™‹โ€โ™‚๏ธ Suggestions:

  • Get Suggestions From Server Members To Help Your Server Become The Best!
    Commands: suggest, suggestion...
  • Accept Or Decline The Suggestions And Customize Them To The Max!
    Commands: suggestion status, suggestion channel, suggestion appch, suggestion rejch, suggestion approve, suggestion staffadd, suggestion staffremove...

โš’๏ธ Utility Commands:

  • Need Some Help With Something? Use The Utility Commands To Find Out The Answer To It
    Commands: bigemoji, covid, pokedex, urban, weather, ...
  • Need Help With Some More Stuff?
    Commands: help, proxies, translate, paste, ...

โญ Anime Content:

  • Love Anime? Express You Love To Someone Using The React Commands
    Commands: react, hug, kiss, cuddle, pat, poke, slap, smug, ...

๐Ÿช™ Economy System:

  • Want To Become Richest? Use The Economy Commands!
    Commands: bank, daily, beg, gamble...
  • Give People Money, Check Your Balance, Or Just Flex!
    Commands: bank balance, bank deposit, bank withdraw, bank transfer, ...

๐Ÿ˜ Fun Commands:

  • Have Some Fun In Your Server!
    Commands: animal, facts, meme, flip, ...
  • Play Games And Enjoy Yourself
    Commands: snake, together, flip coin, flip text, ...

๐Ÿ“จ Invite Tracking:

  • Track who has been inviting people to your server!
  • Invite Ranks! Inviter can get awesome rewards and be recognised
  • Configure these settings and customize them to your liking!
    Commands: resetinvites, addinvites, invitesimport, inviterank...

๐Ÿ“ท Image Manipulation:

  • Customize other peoples avatars
    Commands: blur, greyscale, invert, pixelate, blur, sepia, sharpen, ad, affect, beautiful, color...
  • Make some images by yourself or make some art
    Commands: bobross, confusedstonk, delete, facepalm, hitler, jail, jokeoverhead, karaba, mms, notstonk, poutine, rainbow, rip, shit, stonk, tatoo, thomas, trash, wanted, wasted, ...

๐Ÿค Contributing ๐Ÿค

  • Special thanks to @Androzz for the dashboard and his other cool discord bot projects
  • Feel free to Fork this repository, create a feature branch and submit a pull request
  • You can keep track of all the planned features here or make a request for one at our discord

discord-js-bot's People

Contributors

airwav avatar arturdealcantara avatar edvoids avatar jonathan5508 avatar katerina1179 avatar korsinemi avatar loopychimp avatar mid-rip avatar nocturnal-compiler avatar rhaym-tech avatar river198 avatar saiteja-madha avatar snyk-bot avatar sparker-99 avatar xf3d33 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord-js-bot's Issues

Operation `giveaways.find()` buffering timed out after 10000ms

Describe the bug

MongooseError: Operation `giveaways.find()` buffering timed out after 10000ms
    at Timeout.<anonymous> (/usr/src/app/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:198:23)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)

To Reproduce

  1. Provide an invalid DB details
  2. Wait for the bot to start

Expected behavior
Bot should terminate with connection error instead

If possible

  • NodeJS version: 16.6.0
  • Bot version: 4.1.0

Slash Command Permissions

Describe the bug
Slash Command doesn't return if permission is missing

To Reproduce

  • use any slash command with permissions configured
  • run the command

Expected behavior

  • if user lacks the permission, it should't run

[BUG] Unmute doesnt unmute

Describe the bug
The code allows you to mute a person, but when you unmute, it doesnt remove the muted role.

To Reproduce
Steps to reproduce the behavior: Try to unmute anyone, it will happen

Expected behavior
It is expected to unmute the person on command.

Screenshots
If applicable, add screenshots to help explain your problem. - ok

If possible

  • NodeJS version: 16.9
  • Bot version: 3.2.1
    image

Getting disconnected randomly while playing track

I tried the bot and it works completely fine but sometimes it get disconnected from VC randomly and logs an error. I have filed the .env and config.json file completely but still it gets disconnected.
All dependencies are correctly installed and running with node 16.x .
Its not the host problem as i tried deploying it at many vps

Cannot read properties of undefined | automod

Describe the bug

TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at Automod.messageRun (/usr/src/app/src/commands/admin/automod/automod.js:196:30)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Automod.executeCommand (/usr/src/app/src/structures/Command.js:160:7)โ€Š

If possible

  • NodeJS version: 16.6.0
  • Bot version: 4.1.0

Issue ar guildDelete.js

DiscordAPIError: Missing Access
at RequestHandler.execute (/home/container/node_modules/discord.js/src/rest/RequestHandler.js:349:13)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/home/container/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
at async GuildMemberManager._fetchSingle (/home/container/node_modules/discord.js/src/managers/GuildMemberManager.js:388:18)
at async module.exports (/home/container/src/events/guild/guildDelete.js:9:48)โ€Šโ€Š
Sometimes When user leave bot won't do farewell, but sometimes it works fine

Thankyou

Mongoose error

when I add the bot on a server, it doesn't respond to commands and gives this error on the console:

mongoError: E11000 duplicate key error collection: test.guilds index: id_1 dup key: { id: null }

Music Channel (BUG)

Describe the bug
Bot doesn't leave when music channel is empty

To Reproduce
Run the music command and leave the channel.

Expected behavior
That the bot stops playing music and leaves the channel if the only member is the.

If possible

  • NodeJS version: 16
  • Bot version: 3.3.0

Additional context
No.

Unknown Member

Describe the bug

DiscordAPIError: Unknown Member
    at RequestHandler.execute (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/rest/RequestHandler.js:349:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
    at async GuildMemberManager._fetchSingle (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/managers/GuildMemberManager.js:388:18)
    at async parse (/home/strange/Desktop/discord-js-bot/src/handlers/greeting.js:19:23)
    at async buildGreeting (/home/strange/Desktop/discord-js-bot/src/handlers/greeting.js:53:54)
    at async Object.sendFarewell (/home/strange/Desktop/discord-js-bot/src/handlers/greeting.js:105:20)

USER_BANNER_NOT_FETCHED Error

Describe the bug
Error when login into dashboard

To Reproduce
Login to the dashboard on localhost

If possible

  • NodeJS version: v16.11.0
  • Bot version: 3.3.1

Slash ticket limit

TypeError [COMMAND_INTERACTION_OPTION_TYPE]: Option "amount" is of type: STRING; expected INTEGER.

Counter Channel Bug

Describe the bug
Channel counters don't update after bot restart

To Reproduce

  • Setup any counter channel
  • Wait for the bot to restart

Expected behavior
Channel counters should be updated even after the bot restarts

If possible

  • NodeJS version: 16.6.0
  • Bot version: 4.0.0

Lavalink usage for music

Is your feature request related to a problem? Please describe.
Music commands won't work on Replit

Describe the solution you'd like
Erelajs or any other lavalink client for music commands

Issue at voiceStateUpdate

I found this issue when I'm listening Music with my friends and if my friend leave voice channel after a minute bot will leave too, I try to fixed my self and remove .destroy(); at the end bot not leaving the voice channel before the queue end, but its works fine when my friends leaving VC bot still in the VC bot will leave when queue end.

Code before:
17: // if there's still 1 member,
18: client.musicManager.get(guild.id) && client.musicManager.get(guild.id).destroy();

Code After:
17: // if there's still 1 member,
18: client.musicManager.get(guild.id) && client.musicManager.get(guild.id);

Ticket Log Channel: Cannot read property 'me' of undefined

Describe the bug
Cannot read property 'me' of undefined

To Reproduce
Use command !ticket log #channel

Expected behavior
Log channel needs to be configured

Screenshots

TypeError: Cannot read property 'me' of undefined
at canSendEmbeds (/home/strange/Desktop/discord-js-bot/src/utils/guildUtils.js:19:47)
at setupLogChannel (/home/strange/Desktop/discord-js-bot/src/commands/admin/ticket/ticket.js:396:8)
at Ticket.messageRun (/home/strange/Desktop/discord-js-bot/src/commands/admin/ticket/ticket.js:184:24)
at Ticket.executeCommand (/home/strange/Desktop/discord-js-bot/src/structures/Command.js:159:18)
at module.exports (/home/strange/Desktop/discord-js-bot/src/events/message/messageCreate.js:25:11)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

If possible

  • NodeJS version: 16.6.0
  • Bot version: 4.0.0

Error [INTERACTION_ALREADY_REPLIED] - meme.js

Describe the bug

Error [INTERACTION_ALREADY_REPLIED]: The reply to this interaction has already been sent or deferred.
    at ButtonInteraction.deferUpdate (/usr/src/app/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:180:46)
    at InteractionCollector.<anonymous> (/usr/src/app/src/commands/fun/meme.js:65:22)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

If possible

  • NodeJS version: 16.6.0
  • Bot version: 4.1.0

Discord API Error - Not Found

Describe the bug

DiscordAPIError: 404: Not Found
    at RequestHandler.execute (/usr/src/app/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/usr/src/app/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
    at async UserManager.fetch (/usr/src/app/node_modules/discord.js/src/managers/UserManager.js:93:18)
    at async module.exports (/usr/src/app/src/events/guild/guildDelete.js:17:17)โ€Š

If possible

  • NodeJS version: 16.6.0
  • Bot version: 4.1.0

Error Embed is not well formated

Describe the bug
Error embed doesn't have a valid code formatting

To Reproduce

  • Enable error webhook
  • Wait for any error

Expected behavior
Embed description to be formatted in

Error details

TypeError: Cannot read property 'inviteCache' of undefined

Describe the bug

TypeError: Cannot read property 'inviteCache' of undefined
    at setStatus (/home/strange/Desktop/discord-js-bot/src/commands/invites/invitetracker.js:84:17)
    at InviteTracker.messageRun (/home/strange/Desktop/discord-js-bot/src/commands/invites/invitetracker.js:50:28)
    at InviteTracker.executeCommand (/home/strange/Desktop/discord-js-bot/src/structures/Command.js:159:18)
    at module.exports (/home/strange/Desktop/discord-js-bot/src/events/message/messageCreate.js:25:11)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

To Reproduce
Enable/disable invite tracker

Expected behavior
Configuration change without any error

If possible

  • Bot version: 4.0.1

Counter Status Error

File: counter-setup.js
Error: TypeError: db.getSettings is not a function
Fix: Change line 74 from 'const config = await db.getSettings(guild.id);' to 'const config = await db.getConfig(guild.id);'
const config = await db.getConfig(guild.id);

Cannot send messages to this user

Describe the bug
Cannot send messages to this user

To Reproduce

  • Block the bot
  • Use any command to make the bot DM you

Expected behavior
DM should be sent only if possible

Error Log

DiscordAPIError: Cannot send messages to this user
    at RequestHandler.execute (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/rest/RequestHandler.js:349:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
    at async DMChannel.send (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:172:15)

Invalid redirect uri

Describe the bug
Invalid Redirect uri
To Reproduce
go to the dashboard and try and login

Expected behavior
login me in
Screenshots
image

If possible

  • NodeJS version: 16
  • Bot version: latest

Additional context
Add any other context about the problem here.

Avatar command - Bug

Describe the bug
Embed title of avatar command displayed as undefined

To Reproduce
Use !avatar

Add a blacklist/whitelist feature for owners

Is your command request related to a problem? Please describe.
No

Describe what command you'd like
I want a blacklist/whitelist feature which owners can use and can block users from accessing bot commands and also to their discretion they can opt for whitelisting blacklisted users so they can use commands again for the bot.

Dashboard Toast Notification

When a configuration is saved on the dashboard, send a toast notification to show if it is successful or failed

Better Logging

Is your feature request related to a problem? Please describe.
Discord logging

Describe the solution you'd like
Log messages can be done as follows

  • to console using something like chalk library
  • to discord channel using webhooks
  • complete dump to text file

message_reference: Unknown message

Describe the bug
Invalid Form Body
message_reference: Unknown message

Screenshots

DiscordAPIError: Invalid Form Body
message_reference: Unknown message
at RequestHandler.execute (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/rest/RequestHandler.js:349:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
at async TextChannel.send (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:172:15)
at async Play.executeCommand (/home/strange/Desktop/discord-js-bot/src/structures/Command.js:161:7)

DiscordAPIError: Missing Permissions

Describe the bug

DiscordAPIError: Missing Permissions
    at RequestHandler.execute (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
    at async TextChannel.send (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:175:15)

To Reproduce

  • mention the bot where in the text channel where it does not have Write permissions

If possible

  • NodeJS version: 16.6.0
  • Bot version: 4.0.1

Dashboard custom url without replit!

Hey! Me again, I forgot to ask last time how do I make it so that I can use a custom url without replit as replit struggles with v16 of node rn and won't forever upgrade which is bad when I'm away!

Play Command - Error

Describe the bug
Play command error out if incorrect song is selected

To Reproduce
Steps to reproduce the behavior:

  • use play command
  • out of 5 options to select a song enter some random string

Expected behavior
Message to be displayed showing incorrect input

Error Log

RangeError: Provided argument must be present.
    at Function.validate (/root/discord-js-bot/node_modules/erela.js/dist/structures/Utils.js:46:19)
    at Queue.add (/root/discord-js-bot/node_modules/erela.js/dist/structures/Queue.js:38:33)
    at Play.messageRun (/root/discord-js-bot/src/commands/music/play.js:142:22)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Play.execute (/root/discord-js-bot/src/structures/Command.js:170:5)
    at async module.exports (/root/discord-js-bot/src/events/message/messageCreate.js:29:9)

If possible

  • Bot version: 3.3.0

Mongo E11000 error

'MongoError:' E11000 duplicate key error collection: test.guilds index: guildId_1 dup key: { guildId: null }

If possible

  • NodeJS version: 16.11.1
  • Bot version: 4.0.1

Additional context
I have changed mongoURI, bot token, but still it wont work

Greeting thumbnail command doesn't work

Describe the bug
The greeting thumbnail command doesn't work

To Reproduce

  • set welcome/farewell thumbnail on

Expected behavior
Thumbnail should be enabled

Events file for ready.js

Hello! i was just wondering how i could go about adding an events file for ready.js aand other files

Slash embed command

Is your command request related to a problem? Please describe.
I'd like an advanced embed slash command
Describe what command you'd like
A command with a lot of options

Additional context
Add any other context or screenshots about the feature request here.

Owner commands

You should make owner commands so only the people who use it can see it which should only be the owners so use ephemeral, i can assist if you need it, i have made a few changes to it on my version on my pc.

[BUG] Warning Context Permissions

Describe the bug
Warning context can be used by everyone

To Reproduce
Right click any user name > Apps > BotName > Warn

Expected behavior
Only moderators are expected to use this

Music System Bug

Describe the bug
While Playing A Song It Should Be Like Only We/Song Requesters Can Access The /stop /skip etc... commands But Any One Can Access /stop /skip Commands Please Change It So That Only Admins can use those commands while a track is being played. ty

To Reproduce
Steps to reproduce the behavior:
try /play (song of your choice) next log into your alt account and try /stop

Error [CHANNEL_NOT_CACHED]: Could not find the channel where this message came from in the cache!

Describe the bug

Error [CHANNEL_NOT_CACHED]: Could not find the channel where this message came from in the cache!
    at Message.edit (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/structures/Message.js:653:46)
    at InteractionCollector.<anonymous> (/home/strange/Desktop/discord-js-bot/src/commands/utility/help.js:196:32)
    at InteractionCollector.emit (node:events:406:35)
    at InteractionCollector.stop (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/structures/interfaces/Collector.js:197:10)
    at InteractionCollector._handleGuildDeletion (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/structures/InteractionCollector.js:228:12)
    at BotClient.emit (node:events:406:35)
    at GuildDeleteAction.handle (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/actions/GuildDelete.js:47:14)
    at Object.module.exports [as GUILD_DELETE] (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/websocket/handlers/GUILD_DELETE.js:4:30)
    at WebSocketManager.handlePacket (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:350:31)
    at WebSocketShard.onPacket (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:443:22)
    at WebSocketShard.onMessage (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:300:10)
    at WebSocket.onMessage (/home/strange/Desktop/discord-js-bot/node_modules/ws/lib/event-target.js:199:18)
    at WebSocket.emit (node:events:394:28)
    at Receiver.receiverOnMessage (/home/strange/Desktop/discord-js-bot/node_modules/ws/lib/websocket.js:1022:20)
    at Receiver.emit (node:events:394:28)
    at Receiver.dataMessage (/home/strange/Desktop/discord-js-bot/node_modules/ws/lib/receiver.js:522:14)โ€Š

To Reproduce

  1. Invite bot to a guild
  2. Use !help command
  3. Remove bot from that guild
  4. Error happens

Cannot read properties of undefined | logger

Describe the bug

TypeError: Cannot read properties of undefined (reading 'length')
    at sendWebhook (/usr/src/app/src/helpers/logger.js:24:44)
    at sendLogs (/usr/src/app/src/helpers/logger.js:57:25)
    at exports.error (/usr/src/app/src/helpers/logger.js:71:34)
    at checkForUpdates (/usr/src/app/src/utils/botUtils.js:7:33)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async startupCheck (/usr/src/app/src/utils/botUtils.js:63:3)
    at async /usr/src/app/bot.js:20:3โ€Š

If possible

  • NodeJS version: 16.6.0
  • Bot version: 4.1.0

Discord Status Issue in Dashboard

Describe the bug
Whether your status is set to dnd, online or idle ; the dashboard will show the offline status only.

To Reproduce
This happens when you launch your bot dashboard and sign in from your discord account.

Expected behavior
If the user's status is set to dnd, online, idle or offline ; it should show that status only in the dashboard and not just show offline status regardless of what your status is set to in discord.

Additional Info

  • NodeJS version: 16.13.1

Bug With Pokemon Command

Describe the bug
###pokedex command aint workin it says for any pokemon "pokemon not found"

To Reproduce
use pokedex command

Expected behavior
you should get a error in you terminal/console

Screenshots
If applicable, add screenshots to help explain your problem.

Music

Please Add More More Commands music

TypeError: Cannot read property 'user' of undefined

Describe the bug

TypeError: Cannot read property 'user' of undefined
    at /home/strange/Desktop/discord-js-bot/dashboard/app.js:33:30
    at Layer.handle [as handle_request] (/home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/index.js:317:13)
    at /home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/index.js:335:12)
    at next (/home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/index.js:275:10)
    at session (/home/strange/Desktop/discord-js-bot/node_modules/express-session/index.js:196:71)
    at Layer.handle [as handle_request] (/home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/index.js:317:13)
    at /home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/index.js:335:12)
    at next (/home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/index.js:275:10)
    at serveStatic (/home/strange/Desktop/discord-js-bot/node_modules/serve-static/index.js:75:16)
    at Layer.handle [as handle_request] (/home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/index.js:317:13)
    at /home/strange/Desktop/discord-js-bot/node_modules/express/lib/router/index.js:284:7โ€Š

If possible

  • NodeJS version: 16.6.2
  • Bot version: 4.0.1

Channel not cached

Error [CHANNEL_NOT_CACHED]: Could not find the channel where this message came from in the cache!
    at Message.edit (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/structures/Message.js:653:46)
    at InteractionCollector.<anonymous> (/home/strange/Desktop/discord-js-bot/src/commands/utility/help.js:196:16)
    at InteractionCollector.emit (node:events:406:35)
    at InteractionCollector.stop (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/structures/interfaces/Collector.js:197:10)
    at InteractionCollector._handleGuildDeletion (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/structures/InteractionCollector.js:228:12)
    at BotClient.emit (node:events:406:35)
    at GuildDeleteAction.handle (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/actions/GuildDelete.js:47:14)
    at Object.module.exports [as GUILD_DELETE] (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/websocket/handlers/GUILD_DELETE.js:4:30)
    at WebSocketManager.handlePacket (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:350:31)
    at WebSocketShard.onPacket (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:443:22)
    at WebSocketShard.onMessage (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:300:10)
    at WebSocket.onMessage (/home/strange/Desktop/discord-js-bot/node_modules/ws/lib/event-target.js:199:18)
    at WebSocket.emit (node:events:394:28)
    at Receiver.receiverOnMessage (/home/strange/Desktop/discord-js-bot/node_modules/ws/lib/websocket.js:1022:20)
    at Receiver.emit (node:events:394:28)
    at Receiver.dataMessage (/home/strange/Desktop/discord-js-bot/node_modules/ws/lib/receiver.js:522:14)

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.