Bot stalls while registering commands

My bot was working fine yesterday after noticing the new Cog section of the documentation (really cool thank you it worked perfectly.) After I changed to the cog system I noticed the updates to the packages in Announcements. I ran npm upgrade and started receiving the channel errors noted in another thread which I was able to fix. The bot now just stalls when registering commands, any idea what I can change? The registrations match the documentation as far as I can tell. Log: https://pastebin.com/BrPAYDa3 Package.json: https://pastebin.com/rRQyYjWA register snippet: https://pastebin.com/xeiryjk8 "COG"s implementation: https://pastebin.com/dtS487BH
Pastebin
console output - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
package.json - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
register command - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
COGs implementation - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
22 Replies
Favna
Favna2y ago
wdym stall? the last log line shows it is done
WhacK
WhacK2y ago
but it never goes through guild commands it stops at global commands
Favna
Favna2y ago
Does the guild Id array actually gave values? Have you checked that? @Gemboard also uses guild only commands with bulk overwrite
WhacK
WhacK2y ago
Yes it does, I've been using it that way
Favna
Favna2y ago
GitHub
GitHub - sapphiredev/gemboard: A private starboard bot for the Sapp...
A private starboard bot for the Sapphire server. Contribute to sapphiredev/gemboard development by creating an account on GitHub.
WhacK
WhacK2y ago
I will take a look thank you Yes mine are set up just like this except I only have one guild I use at a time (making a D&D game bot for a specific server) so I pass along 1 value. in this case it's passing:
{ guildIds: ['984143580241211412'] }
{ guildIds: ['984143580241211412'] }
WhacK
WhacK2y ago
Ok so I didn't get anywhere with that. I tried starting from a clean branch and redid the cog system again. The instructions in the guide worked perfectly for commands already registered. When I tried creating a new command for a feature I am starting on I started receiving this error. https://pastebin.com/X25kVuhh (Console Output) https://pastebin.com/SQn0ir7z (src/Dashboard/commands/dashboard.ts)
Pastebin
New Output - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
src/Dashboard/commands/dashboard.ts - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
WhacK
WhacK2y ago
This is set up the same way as all the other previously registered commands.
Favna
Favna2y ago
And you're saying it worked fine before the cog system?
WhacK
WhacK2y ago
Correct
Favna
Favna2y ago
One more check question, you implemented the system exactly like on the guide page? In terms of extending the sapphire client, and registering in the constructor?
WhacK
WhacK2y ago
Yes I did let me show
WhacK
WhacK2y ago
Pastebin
import { AVRAE_USER_ID, BeholderEmojis } from '../../constants/cons...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Favna
Favna2y ago
I have an idea what it might be but I'm on mobile now so I cannot easily check the sapphire code to confirm.
WhacK
WhacK2y ago
ok well any help you could give when possible would be great I really like this cog layout for this project
Favna
Favna2y ago
I'll check my hunch later
WhacK
WhacK2y ago
Any chance you were able to look at this?
Favna
Favna2y ago
Not yet @WhacK can you share a github repo of the bot or otherwise a small reproducible sample? My hunch wasn't correct so I'd like to properly debug this.
WhacK
WhacK2y ago
Yes I’d be happy to but I’m not at home I’ll send it asap
WhacK
WhacK2y ago
GitHub
GitHub - whackdev/BeholderSapphire at refactor/cogs
Contribute to whackdev/BeholderSapphire development by creating an account on GitHub.
WhacK
WhacK2y ago
That's the repo the branch is refactor/cogs
Favna
Favna2y ago
bump this for myself as I havent taken time to look intoit yet
Want results from more Discord servers?
Add your server