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
wdym stall? the last log line shows it is done
but it never goes through guild commands
it stops at global commands
Does the guild Id array actually gave values? Have you checked that?
@Gemboard also uses guild only commands with bulk overwrite
Yes it does, I've been using it that way
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.
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:
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.
This is set up the same way as all the other previously registered commands.
And you're saying it worked fine before the cog system?
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?
Yes I did let me show
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.
I have an idea what it might be but I'm on mobile now so I cannot easily check the sapphire code to confirm.
ok well any help you could give when possible would be great I really like this cog layout for this project
I'll check my hunch later
Any chance you were able to look at this?
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.
Yes I’d be happy to but I’m not at home I’ll send it asap
GitHub
GitHub - whackdev/BeholderSapphire at refactor/cogs
Contribute to whackdev/BeholderSapphire development by creating an account on GitHub.
That's the repo the branch is refactor/cogs
bump this for myself as I havent taken time to look intoit yet