#0 global commands

1 messages · Page 1 of 1 (latest)

storm creekBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

subtle orchid
#

okay it's only doing that on linux? maybe I didn't install something properly

subtle orchid
#

it's going online and stuff, so im not sure whats going on

subtle orchid
#

what the fuck

#

LINE FOR LINE exactly, no changes. works fine on windows

fair moth
#

Why did you delete the original question wtfummm

subtle orchid
#

while on windows the same exact code works fine

#

I am not sure if I installed something incorrectly

fair moth
#

line... for... line? why not use Git to check it into a repo then clone it on the other OS?

subtle orchid
#

that's what I mean!

fair moth
#

oh

subtle orchid
#

I used git

fair moth
#

I thought you literally meant copy and paste

subtle orchid
#

nono lool

fair moth
#

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 with npm ci / yarn --immutable / pnpm --frozen-lockfile on the Linux system to ensure the exact same dependencies are insalled.
  • Also if you use native dependencies (@sapphire/type, zlib-sync , bufferutil etc) 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 just apt install build-essential python3 python3-pip)
subtle orchid
#

did all of the above and still

#

uhhhhhhhhhh

fair moth
#

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.

subtle orchid
#

fuck

subtle orchid
#

this code is cursed .

subtle orchid
#

I'm using oracle cloud and I'm wondering if smth with the firewall is blocking registering slash commands? I'm not sure

fair moth
#

Honestly no idea... Could be I suppose. Did you setup the same env files as well?

subtle orchid
#

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*

#

**

fair moth
#

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.

subtle orchid
#

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

fair moth
#

Later if anything. I'm only awake because I woke from a bad dream.

subtle orchid
#

I don't see any issues here

subtle orchid
#

anyway just ping/dm me whenever you're actually awake&available

fair moth
#

I realise I never got back to you on this @subtle orchid, my apologies. Are you still struggling with the issue?

subtle orchid
subtle orchid
fair moth
#

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 dragonheart

fair moth
#

@subtle orchid im available starting now for the coming 3 or so hours

subtle orchid
fair moth
#

sure ye