#0 global commands
1 messages · Page 1 of 1 (latest)
okay it's only doing that on linux? maybe I didn't install something properly
it's going online and stuff, so im not sure whats going on
Why did you delete the original question 
I didn't mean to, question was that I transferred code to linux.. line for line, file for file and it wouldn't load any global commands
while on windows the same exact code works fine
I am not sure if I installed something incorrectly
line... for... line? why not use Git to check it into a repo then clone it on the other OS?
that's what I mean!
oh
I used git
I thought you literally meant copy and paste
nono lool
well Node is fully cross platform so the only factors that come to mind are:
- Node version, keep in mind that the default Debian/Ubuntu (i cant speak for Mint, Arch etc) repos have an ancient version of Node. Many of us here love Volta but you can also install Node through Nodesource
- Dependencies. Make sure you check in your
package-lock.json/yarn.lock/pnpm lock (i forget the name) and install dependencies withnpm ci/yarn --immutable/pnpm --frozen-lockfileon the Linux system to ensure the exact same dependencies are insalled. - Also if you use native dependencies (
@sapphire/type,zlib-sync,bufferutiletc) make sure you have a working C build tooling setup on the Linux machine. See https://github.com/nodejs/node-gyp#on-unix for that. (for debian/ubuntu it's justapt install build-essential python3 python3-pip)
Volta: Start your engines.
I have no idea then... Sorry. You'll have to share your code. You can also consider setting up docker so the runtime env is identical between the 2.
fuck
this code is cursed .
I'm using oracle cloud and I'm wondering if smth with the firewall is blocking registering slash commands? I'm not sure
Honestly no idea... Could be I suppose. Did you setup the same env files as well?
yes, I mean..
the bot goes online
so I assume it reads the token from the env file
and it connects to the mongodb on the config file
env*
**
I'm sorry it's a bit hard to help you further at least without access to the code but because it's so specific to your vps even harder. It's not something you'll likely want to openly share and that's totally fine. I wouldn't either if I was in your shoes.
I mean if you want to access the vps and try and see what I could've done wrong
¯_(ツ)_/¯
or I could share the client files maybe something up there?
this is the bot.ts, main file for example
and the client class that the bot.ts file is taking from
Later if anything. I'm only awake because I woke from a bad dream.
I don't see any issues here
that's fine
anyway just ping/dm me whenever you're actually awake&available
I realise I never got back to you on this @subtle orchid, my apologies. Are you still struggling with the issue?
thought my request would've been too much I'll try it later and see if it's still happening
;
Alright well my work day is about to start but this time I'll remember so idk what timezone you're in but I'll be available in like 12 hours (got evening events) or tomorrow.
And I suppose you'll have to temporarily give me access to the vps then as you offered since the problem only exists there.
I promise I won't change anything without letting you know and won't go outside the scope of the bot unless necessary in which case I'll also tell you 
@subtle orchid im available starting now for the coming 3 or so hours
I keep forgetting about this do you just want the login to the oracle cloud vps I'm using and you can figure out from there? I don't really care I just want this fixed 🙏
sure ye