Last active
May 5, 2021 09:46
-
-
Save Pavich7/7b03dfe19956a3cae2b024be7a1fbdae to your computer and use it in GitHub Desktop.
Pavich's SimpleBot on YouTube Tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require('discord.js'); | |
const bot = new Discord.Client(); | |
const token = ''; | |
bot.on('message' , msg=>{ | |
if(msg.content === "Hello"){ | |
msg.reply('Hello friend! :)') | |
console.log(`botlog input = Hello`); | |
} | |
}) | |
bot.login(token); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment