Absolutely nothing happens with basic text command
I followed the Getting Started and setting up a basic command steps to no avail, I simply see 'took 0ms to initialize' and running '@<the bot> ping' does nothing.
main
is set to dist/index.js
and I'm using TS if that affects anything.Solution:Jump to solution
- Which version of
@sapphire/framework
are you using?
- What's your file/folder structure?
- Did you use the CLI to generate your bot?
- What's your "main" property in package.json
- Are you using TypeScript? And if so, how are you compiling and running your code? That is to say, what are your build and startup scripts?...24 Replies
src/index.ts:
src/commands/ping.ts:
log output:
The bot does come online on Discord
package.json
Added a
ready
listener -- it does in fact log in as I expected
File structure as well:
A console.log
in the ping command constructor fires, but not in the messageRun when ran
Slash command worksSolution
- Which version of
@sapphire/framework
are you using?
- What's your file/folder structure?
- Did you use the CLI to generate your bot?
- What's your "main" property in package.json
- Are you using TypeScript? And if so, how are you compiling and running your code? That is to say, what are your build and startup scripts?
- In case you are using version 3.0.0 or higher of @sapphire/framework
, and your problem related to message commands, did you add loadMessageCommandListeners
to your SapphireClient
options
Remember that if you are new to @sapphire/framework
it is important that you read the user guide.^ last point
Should that not be pointed out in the guide?
it should yes, blame @const name = args.pick('sean'); whose been promising to make a PR for weeks
I was working on it last night... a first draft is almost done but conventional commits really annoyed me last night
chore: do work
not like it really matters, it gets squashed anyway and the PR title is usedIt wont let me commit even to my own fork without it following the standard lol.
well yeah that's what git hooks are for
commitlint runs on your machine, not GH
I know
--no-verify
^ or that yeah
i always have to repeat to myself git commit --no-verify --no-gpg-sign (my gpg key is expired and i don't wanna fix that rn)
-n
is short for --no-verify
fyiIT IS?
yes
is there one for --no-gpg-sign?
man page should answer that
anyways thank you @Favna
https://git-scm.com/docs/git-commit#:~:text=By%20default%2C%20the%20pre%2Dcommit%20and
I mean
no
but you could just disable it in git config
and next time generate a gpg key that doesnt expire
bad
no
my master key has a while on it
expiring gpg keys arent worth it for git commits. It's not that important for them to expire. It's not like you're sending encrypted files.
i just need to re-generate my new subkeys
I dont even bother with separate subkeys
i use pgp for stuff other than git, so i care about it
fair