this is the source code for my bot, see the terrible coding i did here
Required dependencies: node.js, npm, nodemon, A valid discord bot
- Run in a command prompt
npm install -g nodemon - Clone this repository
- Go into the project root and run
npm install - Create a file
.envin your project root, - In the
.envfile place these lines and replace them with your information:
TOKEN = YOUR DISCORD BOT TOKEN
CLIENT_ID = YOUR DISCORD BOT CLIENT ID
LLAMA_ADDRESS = IP AND PORT WHERE YOUR LLAMA INSTANCE IS HOSTED ON
GRAB YOUR TOKEN FROM BOT > RESET TOKEN (YOU CAN ONLY SEE THE TOKEN ONCE)
CLIENT ID IN GENERAL INFORMATION
IF YOU DONT WANNA HOST AI, DISABLE AI_SUPPORT IN CONFIG.JSON
- After that, run
nodemonthen the bot should start - You're done!