worn-off-keys-discord-js's People
Forkers
bytecodexdev toru-yy exungg lucifermornistar hanamijung devlanzer 1sekai lndhulk34 light3y ayamie moovirus uditvegad they2b gamer88yt dominik1516 techtu ardik1310 apartsquare3916 filinggaming bonglongcs eduzinnz michael1208 sugarycream gabry730 realdrdeku 0xgamer lol817 kkjustkk matteopiffari thefinality coonxtro anthonymirza1234 1yonce keroatef 4dnkgt celeryboi icelord810 mosamir111 clementvittu sarah-smith-96 shine-studios foytak randy-xd murtadah73737e7 alexallen2385 redempxx opphoenix24 marc-asmar ryanhindman6654 brodex1 alexeska-beep proteek001 adamthepadaam xynnix zugzwang00 pan-code trafliated benjics mehdi4591 boombaennie vapequeen dylanofdiscord cellneutr0n sonicm35 zermal-kzb shiroyasha11 aqua809 magjasiekk donjuan404 jelturk007 non-debug mamberroi1 dryness123 ziadflafl lemonredstone vivaking me5hl fiscalon xspeedbots cypoos isellmymom coquinhamaster sadprolific netzer7 lordcage bloodntc d4m1jx garmadonprime schmul42 srnewton27 alisa-cpu mephisto419 andrefranc0 jonasdev258 louisfer657 randomx24 itspurplez-1 maikobot randommcsky serverconfigsworn-off-keys-discord-js's Issues
Issue with invite-notifications (i have added the channel id as my guild's channel id and bot has admin perms too also before is undefined idk why i hope there is a fix for this....
BEFORE: undefined
AFTER: { 'Dhruvin#1204': 5, 'RovinaVD#5147': 0 }
(node:4676) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'Dhruvin#1204' of undefined
at Client. (C:\Users\RAJSHREE\Desktop\Unnamed-Bot\features\features\invite-notifications.js:37:24)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:4676) 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: 1)
(node:4676) [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.
BEFORE: undefined
AFTER: { 'Dhruvin#1204': 5, 'RovinaVD#5147': 0 }
(node:4676) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'Dhruvin#1204' of undefined
at Client. (C:\Users\RAJSHREE\Desktop\Unnamed-Bot\features\features\invite-notifications.js:37:24)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:4676) 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)
Welcome command
coding issues
my bot is not working properly as i did what you said
HELP CANVAS WELCOME
WOKCommands > It is encouraged to use both "MESSAGE" and "REACTION" partials when using WOKCommands due to it's help menu. More information can be found here: https://discord.js.org/#/docs/main/stable/topics/partials
WOKCommands > No commands folder specified. Using "commands"
WOKCommands > Loaded 2 commands.
WOKCommands > Command "setwelcome" does not have the following properties: Category,Description.
WOKCommands > Command "simjoin" does not have the following properties: Category,Description.
Help
says this TypeError: arguments.join is not a function
help///
"TypeError [EMOJI_TYPE]: Emoji must be a string or GuildEmoji/ReactionEmoji" when running the role-claim.js file
Here is how I altered the code for myself. The red_circle and orange_circle emojis etc. are default Discord emojis.
When I run the code, it gives the error TypeError [EMOJI_TYPE]: Emoji must be a string or GuildEmoji/ReactionEmoji
.
The first-message.js file is the same as the one in this repo, and even though I changed a lot of index.js, there are no problems in index.js that have to do with the error I am mentioning.
const firstMessage = require('./first-message')
module.exports = (client) => {
const channelId = '870818745109585920'
const getEmoji = (emojiName) => client.emojis.cache.find((emoji) => emoji.name === emojiName)
const emojis = {
red_circle: 'CrackShot / Sniper',
orange_circle: 'Scrambler / Shotgun',
yellow_circle: 'Whipper / P90',
green_circle: 'RPEGG / RPG',
blue_circle: 'Free Ranger / Semi-Auto',
purple_circle: 'EGG-K / AK-47',
white_circle: 'TriHard / AUG',
black_circle: 'Cluck-9mm / Pistol'
}
const reactions = []
let emojiText = '**GUN ROLES**\n\n'
for (const key in emojis) {
const emoji = getEmoji(key)
reactions.push(emoji)
const role = emojis[key]
emojiText += `${emoji} = ${role}\n`
}
firstMessage(client, channelId, emojiText, reactions)
const handleReaction = (reaction, user, add) => {
if (user.id === '869698265698947102') {
return
}
const emoji = reaction._emoji.name
const { guild } = reaction.message
const roleName = emojis[emoji]
if(!roleName) {
return
}
const role = guild.roles.cache.find((role) => role.name === roleName)
const member = guild.members.cache.find((member) => member.id === user.id)
if (add) {
member.roles.add(role)
} else {
member.roles.remove(role)
}
}
client.on('messageReactionAdd', (reaction, user) => {
if (reaction.message.channel.id === channelId) {
handleReaction(reaction, user, true)
}
})
client.on('messageReactionRemove', (reaction, user) => {
if (reaction.message.channel.id === channelId) {
handleReaction(reaction, user, false)
}
})
}```
Kick/Ban doesn't work
Anyone knows how to do kick/ban command work? It's not a problem in code i think, i tried few variants of code, but no one works. Am i need to do anything else?
TypeError: MongoDBProvider is not a constructor
https://github.com/AlexzanderFlores/Worn-Off-Keys-Discord-Js/blob/master/45-Commando-Per-Guild-Prefixes/index.js
Line 7 with type error: const MongoDBProvider = require('commando-provider-mongo')
.
It should look like this: const { MongoDBProvider } = require('commando-provider-mongo')
or const MongoDBProvider = require('commando-provider-mongo').MongoDBProvider
Commando MongoDBProvider
Error message
Hello I have a error message in the terminal and I whould like to have some help please I tried everything but I can't find where ;/
Here is the code
const addReactions = (message, reactions) => {
message.react(reactions[0])
reactions.shift()
if (reactions.length > 0) {
setTimeout(() => addReactions(message, reactions), 750)
}
}
module.exports = async (client, id, text, reactions = []) => {
const channel = await client.channels.fetch(id)
channel.messages.fetch().then((messages) => {
if (messages.size === 0) {
// Send a new message
channel.send(text).then((message) => {
addReactions(message, reactions)
})
} else {
// Edit the existing message
for (const message of messages) {
message[1].edit(text)
addReactions(message[1], reactions)
}
}
})
}
Microsoft Windows [version 10.0.18363.1198]
(c) 2019 Microsoft Corporation. Tous droits réservés.
C:\Users\young\OneDrive\Bureau\Bot KGB>node index.js
(node:3948) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'messages' of null
at module.exports (C:\Users\young\OneDrive\Bureau\Bot KGB\first-message.js:12:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:3948) 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: 1)
(node:3948) [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.
Le Bot est prêt
Getting error to install commando
I am getting a error for installing commando. It is failing and I can’t find out why. I can’t see the log since I am on replit.com . Here is the error: Can’t get it rn.
Is anyone else having this?
game: fast type.
suggestion
..
CLIENT_MISSING_INTENTS error
the bot dosent work on discord.js version 13.0.1!
it prompted an error that said:
TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client.
at Client._validateOptions (C:\Users\pc\Desktop\HHF\node_modules\discord.js\src\client\Client.js:544:13)
at new Client (C:\Users\pc\Desktop\HHF\node_modules\discord.js\src\client\Client.js:73:10)
at Object. (C:\Users\pc\Desktop\HHF\index.js:2:16)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
at node:internal/main/run_main_module:17:47 {
[Symbol(code)]: 'CLIENT_MISSING_INTENTS'
}
I have a Issue with the Mute Command
I have a Issue with the Mute Command ( https://github.com/AlexzanderFlores/Worn-Off-Keys-Discord-Js/tree/master/56-Mute-Command-with-MongoDB )
The Error: "muteSchema.find is not a function"
useFindandModify
Discord.js
Bociek
Fix and update Canvas-Welcome command.
There are instances of _id in the schema and features of the command.
When I first realized I had to manually set my welcome channel after every single time I restarted my bot I was confused. I looked for hours and hours for help, but got none.
All that needs to be done is to change the parts that say _id to guildId
I Am Getting Error
here is code:
registerEvent(client)
const channel = guild.channels.cache.get(channelId)
channel.send(
`A new ticketh has been creaated by <@${member.id}>
Error:
C:\Users\DELL\Desktop\26-Ticketing-System\commands\ticket.js:37
channel.send(
^
TypeError: Cannot read property 'send' of undefined
at callback (C:\Users\DELL\Desktop\26-Ticketing-System\commands\ticket.js:37:13)
at Client. (C:\Users\DELL\Desktop\26-Ticketing-System\commands\command-base.js:133:9)
at Client.emit (events.js:387:35)
at MessageCreateAction.handle (C:\Users\DELL\Desktop\26-Ticketing-System\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\DELL\Desktop\26-Ticketing-System\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\DELL\Desktop\26-Ticketing-System\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
at WebSocketShard.onPacket (C:\Users\DELL\Desktop\26-Ticketing-System\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
at WebSocketShard.onMessage (C:\Users\DELL\Desktop\26-Ticketing-System\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
at WebSocket.onMessage (C:\Users\DELL\Desktop\26-Ticketing-System\node_modules\ws\lib\event-target.js:132:16)
at WebSocket.emit (events.js:375:28)
Dynamic help command displaying commands regardless of perms
Hi,
I have been watching the series on YouTube and have been coding along at first, before making my own adjustments afterwards. Great series, by the way. Lots to learn from it.
Anyway, even after trying to use the forked version of the entire repository, I am still experiencing the same issue. That is when I run the help command (dynamic help command) it prints commands regardless of if the user has permissions or not. My code matches exactly, and even on the forked one the issue was the same.
Am I the only one experiencing this for whatever reason?
feature is not a function
(node:6136) UnhandledPromiseRejectionWarning: TypeError: feature is not a function
the code is EXACTLY the same
const path = require('path')
const fs = require('fs')
module.exports = (client) => {
const readFeatures = (dir) => {
const files = fs.readdirSync(path.join(__dirname, dir))
for (const file of files) {
const stat = fs.lstatSync(path.join(__dirname, dir, file))
if (stat.isDirectory()) {
readFeatures(path.join(dir, file))
} else if (file !== 'load-features.js') {
const feature = require(path.join(__dirname, dir, file))
console.log(`Enabling feature "${file}"`)
feature(client)
}
}
}
readFeatures('.')
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.