#Bot stalls while registering commands

1 messages · Page 1 of 1 (latest)

dense dagger
#

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

red ploverBOT
#

@dense dagger to help others find answers, you can mark your question as solved via Right Click Solution Message->Apps->✅ Mark Solution

upper jacinth
#

wdym stall? the last log line shows it is done

dense dagger
#

but it never goes through guild commands

#

it stops at global commands

upper jacinth
#

Does the guild Id array actually gave values? Have you checked that?

#

@jaunty stream also uses guild only commands with bulk overwrite

dense dagger
#

Yes it does, I've been using it that way

upper jacinth
dense dagger
#

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'] }
dense dagger
#

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)

#

This is set up the same way as all the other previously registered commands.

upper jacinth
#

And you're saying it worked fine before the cog system?

dense dagger
#

Correct

upper jacinth
# dense dagger Correct

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?

dense dagger
#

Yes I did let me show

upper jacinth
#

I have an idea what it might be but I'm on mobile now so I cannot easily check the sapphire code to confirm.

dense dagger
#

ok well any help you could give when possible would be great I really like this cog layout for this project

upper jacinth
#

I'll check my hunch later

dense dagger
#

Any chance you were able to look at this?

upper jacinth
#

Not yet

upper jacinth
#

@dense dagger 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.

dense dagger
#

Yes I’d be happy to but I’m not at home I’ll send it asap

dense dagger
#

That's the repo the branch is refactor/cogs