podaboutlist / linkfix-for-discord

LinkFix brings link embeds back to your Discord server! Simply post Twitter, Instagram, TikTok, or Reddit links and LinkFix will reply with a rich media embed.
https://discord.com/application-directory/385950397493280805
GNU Affero General Public License v3.0
13 stars 4 forks source link

Issue with index.ts #42

Closed Joolian1 closed 5 months ago

Joolian1 commented 5 months ago

image Hi There i have a server and i want to host it on my server but i got an issues i got an issue before this one but the i found the solution in stackoverflow but now i faced a new one ..

Using Node.js v18 .

RalphORama commented 5 months ago

you have to compile the typescript to javascript. use these three commands:

  1. npm install
  2. npm run build
  3. npm start
Joolian1 commented 5 months ago

Still same issue, which is weird i got like 2~3 servers with my bots and they are fine, except this one and i'm ngl Yours is so impressive !

Joolian1 commented 5 months ago

image i tried to change the packages dw same .

RalphORama commented 5 months ago

you still have the startup file set to src/index.ts. you need to change it to dist/index.js

also that "node packages" field on the bottom right should be empty

Joolian1 commented 5 months ago

image image

RalphORama commented 5 months ago

quite frankly I have no clue what server management software you're using and it's outside the scope of this project to support it.

if you're unable to follow the 3 steps I provided earlier it would probably be easier for you to invite the bot to your server using the invite link on the main page of this repository.