0% found this document useful (0 votes)
20 views1 page

Discord Bot Setup Guide

This document contains code for a Discord bot that responds to messages. It uses the Discord.js and Express libraries. The bot listens for the "Terserah mau isi apa" message and responds with the same message. It is hosted on Glitch and pinged every 4 minutes to keep the session alive. The package.json file defines the project details and dependencies.

Uploaded by

Nab Voice
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

Discord Bot Setup Guide

This document contains code for a Discord bot that responds to messages. It uses the Discord.js and Express libraries. The bot listens for the "Terserah mau isi apa" message and responds with the same message. It is hosted on Glitch and pinged every 4 minutes to keep the session alive. The package.json file defines the project details and dependencies.

Uploaded by

Nab Voice
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

//[Link] | Copy yang dibawah ini!

const http = require('http');


const express = require('express');
const app = express();
[Link]("/", (request, response) => {
[Link]('Pinging');
[Link](200);
});
[Link]([Link]);
setInterval(() => {
[Link](`[Link]
}, 280000);

const Discord = require('[Link]');


const client = new [Link]();

[Link]('ready', () => {
[Link]("saya telah online");
});

[Link]('message', async message => {


if ([Link] === "Terserah mau isi apa") {
[Link]('Terserah mau isi apa');
}
});

[Link]([Link])

//[Link] copy yang dibawah ini!

{
"name": "Vins",
"version": "1.0.0",
"main": "[Link]",
"scripts": {
"start": "node [Link]"
},
"dependencies": {
"[Link]": "^12.2.0",
"request": "2.81.0",
"express": "^4.16.3",
"https": "^1.0.0",
"foreach-timeout": "2.0.2",
"express": "^4.16.3",
"map": "^1.0.1"
}
}

You might also like