Git Product home page Git Product logo

discord-bot's Introduction

Hey there

About me


  • Corwin van Velthuizen (CorwinDev)



I am a full stack developer. I have experience with PHP, JAVA, JS, HTML, TS, Python, C but I'm always willing to learn new things! I am 17 years old and I live in the Netherlands. I have about 5 years of experience in creating websites and applications. I am always looking for new challenges! Do you want to have something coded? Contact me via below links!

contact mee





Skills


  • Languages:

    Java HTML5 CSS3 JavaScript NodeJS Python Typescript

  • Databases:

    MySQL MongoDB

  • Softwares and Tools:

    Spring Git GitHub Google Visual Studio Code Linux


Github Stats


Let's Connect..!


discord-bot's People

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

discord-bot's Issues

Run script.

Issue here when i press run on replit
Error: Cannot find module '/home/runner/Discord_bot/index.js'
Require stack:

  • /nix/store/29fdcv1yhlll61ml8a31qdkrbprxd7gs-prybar-nodejs-0.0.0-67f7a00/prybar_assets/nodejs/module-context-hook.js
  • /tmp/prybar-nodejs-830556838.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
    at Function.resolve (node:internal/modules/cjs/helpers:108:19)

Where to Specify the Owner ID of the Bot Owner ?

Hello
Where do i specify the owner id of the bot to use the developers commands because i get everytime this error when using command that starts with /developers ( Only Bot developers are allowed to do this) <--- The Error
i searched in the database and in the files from the bot but i didnt found something

I have a problem with the bot

Hello sorry for incovenience, i have a problem with your bot

Unhandled promise rejection: Response {
[Symbol(realm)]: null,
[Symbol(state)]: {
aborted: false,
rangeRequested: false,
timingAllowPassed: true,
requestIncludesCredentials: true,
type: 'default',
status: 429,
timingInfo: {
startTime: 1304.4092040006071,
redirectStartTime: 0,
redirectEndTime: 0,
postRedirectStartTime: 1304.4092040006071,
finalServiceWorkerStartTime: 0,
finalNetworkResponseStartTime: 0,
finalNetworkRequestStartTime: 0,
endTime: 0,
encodedBodySize: 435,
decodedBodySize: 435,
finalConnectionTimingInfo: null
},
cacheState: '',
statusText: 'Too Many Requests',
headersList: HeadersList {
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
},
urlList: [ [URL] ],
body: { stream: undefined }
},
[Symbol(headers)]: HeadersList {
[Symbol(headers map)]: Map(17) {
'date' => [Object],
'content-type' => [Object],
'transfer-encoding' => [Object],
'connection' => [Object],
'retry-after' => [Object],
'x-frame-options' => [Object],
'referrer-policy' => [Object],
'cache-control' => [Object],
'expires' => [Object],
'report-to' => [Object],
'nel' => [Object],
'vary' => [Object],
'strict-transport-security' => [Object],
'x-content-type-options' => [Object],
'server' => [Object],
'cf-ray' => [Object],
'alt-svc' => [Object]
},
[Symbol(headers map sorted)]: null
}
}

Radio

can make custom radio channel?

Starboard

The starboard system doesnt work after the bot's restart, can you make something to avoid it? @CorwinDev

Bug in guild info

/developers eval code: interaction.guild.verificationLevel and you can see the current level. In the guild info command it's currently undefined

bot stuck on "2 events of warn loaded"

title says it all
console log:
 npm run start

[email protected] start
node . --trace-warnings

Database >> MongoDB is connecting...
System >> Loading commands ...

System >> 42 commands of Command loaded
System >> 5 commands of ContextMenu loaded

System >> Loading events ...

System >> 5 events of channel loaded
System >> 7 events of client loaded
System >> 3 events of emoji loaded
System >> 3 events of event loaded
System >> 4 events of giveaway loaded
System >> 11 events of guild loaded
System >> 3 events of invite loaded
System >> 5 events of message loaded
System >> 6 events of music loaded
System >> 5 events of role loaded
System >> 14 events of stats loaded
System >> 3 events of sticker loaded
System >> 3 events of thread loaded
System >> 2 events of voice loaded
System >> 2 events of warn loaded

Prefix

Make it usable with prefix

Leave Message

The custom output message that was set does not work, the default message is still sent, the error apparently is with the guildMemberRemove.js file but I have not been able to resolve it

Some commands error!

Sometimes there are some commands which take like 40 mins and just say thinking and after that it give error application did not respond!

Shard is death

System >> Version 10.0.0 loaded

System >> Starting Shard #1 ...

node:internal/modules/cjs/loader:1189
return process.dlopen(module, path.toNamespacedPath(filename));
^

Error: libuuid.so.1: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1189:18)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/runner/Discord-Bot/node_modules/canvas/lib/bindings.js:3:18)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
code: 'ERR_DLOPEN_FAILED'
}
/home/runner/Discord-Bot/node_modules/discord.js/src/sharding/Shard.js:162
reject(new DiscordjsError(ErrorCodes.ShardingReadyDied, this.id));
^

Error [ShardingReadyDied]: Shard 0's process exited before its Client became ready.
at Shard.onDeath (/home/runner/Discord-Bot/node_modules/discord.js/src/sharding/Shard.js:162:16)
at Object.onceWrapper (node:events:642:26)
at Shard.emit (node:events:539:35)
at Shard._handleExit (/home/runner/Discord-Bot/node_modules/discord.js/src/sharding/Shard.js:412:10)
at ChildProcess.emit (node:events:527:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
code: 'ShardingReadyDied'
}

Music dont work anymore

Hey i wanted to hear music but this error pops up!

RangeError: No available nodes.
at new Player (/root/AsnaBOT/node_modules/erela.js/dist/structures/Player.js:102:19)
at Manager.create (/root/AsnaBOT/node_modules/erela.js/dist/structures/Manager.js:213:16)
at module.exports (/root/AsnaBOT/src/commands/music/play.js:23:32)
at Client.client.loadSubcommands (/root/AsnaBOT/src/handlers/functions/functions.js:88:130)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

🚨・Unhandled promise rejection

🚨・Unhandled promise rejection Error Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted. Stack error Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted. at WebSocketManager.createShards (/home/runner/Critical/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250:15) at async Client.login (/home/runner/Critical/node_modules/discord.js/src/client/Client.js:226:7)

Image

commands like tweet, trumptweet and few more are returning this error

FetchError: invalid json response body at https://nekobot.xyz/api/imagegen?type=trumptweet&text=hello
reason: Unexpected token < in JSON at position 0

npm run add-dev <DISCORD_USER_ID> gives error

~/Bot$ npm run add-dev <DISCORD_USER_ID>

[email protected] add-dev
node src/dev.js "<DISCORD_USER_ID>"

[ERROR] >> Developer Badge >> Failed to connect to the database!
MongooseError: The uri parameter to openUri() must be a string, got "undefined". Make sure the first parameter to mongoose.connect() or mongoose.createConnection() is a string.
at NativeConnection.Connection.openUri (/home/runner/Bot/node_modules/mongoose/lib/connection.js:695:11)
at /home/runner/Bot/node_modules/mongoose/lib/index.js:417:10
at /home/runner/Bot/node_modules/mongoose/lib/helpers/promiseOrCallback.js:41:5
at new Promise ()
at promiseOrCallback (/home/runner/Bot/node_modules/mongoose/lib/helpers/promiseOrCallback.js:40:10)
at Mongoose._promiseOrCallback (/home/runner/Bot/node_modules/mongoose/lib/index.js:1270:10)
at Mongoose.connect (/home/runner/Bot/node_modules/mongoose/lib/index.js:416:20)
at Object. (/home/runner/Bot/src/dev.js:21:10)
at Module._compile (node:internal/modules/cjs/loader:1099:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

I replaced <DISCORD_USER_ID>with my discord id but I keep my discord id as anonymous. Pls help @CorwinDev

Nothing but issues selfhosting.

Yeah, I'm having issues self hosting the bot. The same results happen with console, or VS code.

The Replit version gives this:
image

And the self hosted from GitHub gives this:
image

How do I fix either of these issues?

APi

What do i put for RADIO ?

🚨・Unhandled promise rejection but for fetch client values

🚨・Unhandled promise rejection

TypeError: Cannot read properties of null (reading 'fetchClientValues')

TypeError: Cannot read properties of null (reading 'fetchClientValues')
at Timeout._onTimeout (/home/runner/Discrd-a-friend/src/events/client/clientReady.js:25:26)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)

So how to fix?

Problem

i start bot and this error [UnhandledPromiseRejection: 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(). The promise rejected with the reason "#".] {
code: 'ERR_UNHANDLED_REJECTION'

Idea: Reload command

Title says it all. This command can prevent your bot for not reacting and you can do this easier if you made changes to the code :)

Error

Unhandled promise rejection: Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
at WebSocketManager.createShards (/home/runner/Discord-Bot-3/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250:15)
at async Client.login (/home/runner/Discord-Bot-3/node_modules/discord.js/src/client/Client.js:226:7) {
code: 'DisallowedIntents'

suggestion for a music related command

Helllo I've a suggestion that you can add a command for grabing the details of currently playing music and send the details via DM to the person. I used to have this command on my bot and it's really a useful command for a random song which I hear for the first time.

image

I want to change bot status

yes. I want to change bot status display but I don't know how to do. I searched all files but not founded (still). Is it come from bot.js or i don't know

Bug

When you use /invites leaderboard showing error same with levels leaderboard
Screenshot_2022-12-18-15-40-10-925-edit_com discord
Screenshot_2022-12-18-15-39-59-577-edit_com discord

Error with shards with a bot in 48 servers.

My bot keeps on erroring with being in 48 servers and having 1 shard. It keeps on shard erroring me with ShardingReadyDied. This has been happening for awhile since I tried making a command named updates. How do I fix this 1 and 2 How do I make this command?

Issue with color convert

TypeError [ColorConvert]: Unable to convert color to a number.
at resolveColor (C:\Users:)\Desktop\Multipurpose-discord-bot\Discord-Bot\node_modules\discord.js\src\util\Util.js:486:39)
at EmbedBuilder.setColor (C:\Users:)\Desktop\Multipurpose-discord-bot\Discord-Bot\node_modules\discord.js\src\structures\EmbedBuilder.js:22:36)
at C:\Users:)\Desktop\Multipurpose-discord-bot\Discord-Bot\src\interactions\Command\embed.js:329:25
at processTicksAndRejections (node:internal/process/task_queues:96:5)

A websocket connection encountered an error

Error
TypeError: Cannot read properties of null (reading 'broadcastEval')
Stack error
TypeError: Cannot read properties of null (reading 'broadcastEval')
at module.exports (/home/runner/DiscordBot/src/events/client/guildDelete.js:49:18)
at Client.emit (node:events:527:28)
at GuildDeleteAction.handle (/home/runner/DiscordBot/node_modules/discord.js/src/client/actions/GuildDelete.js:39:14)
at Object.module.exports [as GUILD_DELETE] (/home/runner/DiscordBot/node_modules/discord.js/src/client/websocket/handlers/GUILD_DELETE.js:4:30)
at WebSocketManager.handlePacket (/home/runner/DiscordBot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:352:31)
at WebSocketShard.onPacket (/home/runner/DiscordBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:489:22)
at WebSocketShard.onMessage (/home/runner/DiscordBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:328:10)
at callListener (/home/runner/DiscordBot/node_modules/ws/lib/event-target.js:290:14)
at... view console for details

ChatBot not working

if i send a message no message comes from the chat bot and this error comes
image

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.