Hi im trying to make a bot with only 2 commands for my serverbut the 2 st command dont work help meconst Discord = require('discord.js');const client = new Discord.Client();console.log('Creating necessary variables');const LoginValue = 'NzQyMjYxMzA0MzE5ODAzNDIz.XzDitQ.dejdTuMyymLuccEJsJ8zUL0gUYc';console.log('Logging in');client.on('ready' , () =>{`console.log('Bot Online');` })client.on('message' , msg=>{`if(msg.content === "~help"){` `msg.reply('Sorry. im in development');` `console.log('User interacted with the bot');` }})client.on('message' , msg=>{`if(msg.content === "~closeclient"){` `msg.reply('Shutting down the bot, please stop your command prompt hoster');` `console.log('User requested to stop the bot');` }})client.login(LoginValue);console.log('Bot fully loaded and ready to run');Please help
Submitted September 06, 2020 at 08:51PM by NickSneaky
No comments:
Post a Comment