A simple bot to discord with something done to use.
First create file .env
in root project, after add inside file variable environment TOKEN=YOUR TOKEN
, required to this will do bot connect with server discord.
Execute npm install
to download all project dependencies
Run in your terminal the command ts-node bot.ts
"dependencies": {
"discord.js": "^14.1.2",
"dotenv": "^16.0.1",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
}