Din egen Discord-bot (discord.js)Your own Discord bot (discord.js)

Bots og appsBots & apps 4 trin4 steps1 min1 min read
  1. 1
    Opret en bot på Discord Developer Portal og kopiér dens token.Create a bot on the Discord Developer Portal and copy its token.
  2. 2
    Upload din kode inklusive package.json, men uden node_modules. Pakkerne installeres ved start.Upload your code including package.json, but without node_modules. Packages are installed on start.
  3. 3
    Angiv din startfil, fx index.js, under Startup.Set your main file, e.g. index.js, under Startup.
  4. 4
    Læg tokenet i en .env- eller config-fil. Del den aldrig offentligt.Put the token in a .env or config file. Never share it publicly.

Navnene på felterne under Startup kan variere en smule fra spil til spil. Kig efter det felt, der ligner mest.The names of the fields under Startup can vary slightly from game to game. Look for the field that matches best.

Fandt du ikke svaret?Didn't find the answer?

Skriv til os via supportsystemet i GamePanel, så hjælper vi dig videre.Message us through the support system in the GamePanel and we'll help you out.

Kontakt supportContact support