Skip to content

Standalone bot but have some feature built with discord js v14 and typescript

License

Notifications You must be signed in to change notification settings

Sleepy4k/discordjs-nakaaa-ts

Repository files navigation

Discord.js Nakaaa

ID

Pengertian

  Sebuah bot discord yang di buat menggunakan framework discord js dari javascript untuk handle interaksi user di discord

Kebutuhan System

  • Node JS >= 16.13.x
  • Node GYP
  • Python >= 3.6.0
  • Visual Studio >= 2022

Instalasi

Pastikan kalian sudah menginstall node js dengan versi >= 18 ke atas

  npm install

Copy file .env.example menjadi .env, dan isi data seperti token etc

  copy .env.example .env (windows)
  cp .env.example .env

jika sudah, isi detail data pada index.js dalam folder config. dan jalankan bot

  npm start

Titik Akhir

  - localhost:3000
  - localhost:3000/api
  - localhost:3000/api/ping
  - localhost:3000/api/users
  - localhost:3000/api/uptime
  - localhost:3000/api/guilds
  - localhost:3000/api/channels
  - localhost:3000/api/command
  - localhost:3000/api/command/:name
  - localhost:3000/api/slash
  - localhost:3000/api/slash/:name
  - localhost:3000/api/invite
  - localhost:3000/api/github
  - localhost:3000/api/log
  - localhost:3000/api/log/:type
  - localhost:3000/api/log/:type/:date

Catatan

  Project ini dibuat dengan typescript dan discord js v14.
  Untuk catatan lebih lanjut kalian bisa baca note.md

EN

Understanding

  A discord bot created using the discord js framework from javascript to handle user interaction on discord

Dependencies

  • Node JS >= 16.13.x
  • Node GYP
  • Python >= 3.6.0
  • Visual Studio >= 2022

Instalation

Make sure you have installed node js with version >= 18 and above

  npm install

Copy the .env.example file to .env, and fill in data such as tokens etc

  copy .env.example .env (windows)
  cp .env.example .env

if so, fill in the data details in index.js in the config folder. and run bots

  npm start

Endpoint

  - localhost:3000
  - localhost:3000/api
  - localhost:3000/api/ping
  - localhost:3000/api/users
  - localhost:3000/api/uptime
  - localhost:3000/api/guilds
  - localhost:3000/api/channels
  - localhost:3000/api/command
  - localhost:3000/api/command/:name
  - localhost:3000/api/slash
  - localhost:3000/api/slash/:name
  - localhost:3000/api/invite
  - localhost:3000/api/github
  - localhost:3000/api/log
  - localhost:3000/api/log/:type
  - localhost:3000/api/log/:type/:date

Note

  This project was made with typescript and discord js v14.
  For further note you can read note.md