It is currently Sat Nov 30, 2024 10:14 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: bots
PostPosted: Sat Dec 15, 2018 1:57 pm 
Offline
Member

Joined: Dec 11, 2018
Posts: 3
bots annoy me
const Discord = require("discord.js");
const Client = new Discord.Client();
const prefix = "?"

Client.on("ready", ()=>{
console.log("you wanna **** die, dont you")
})

Client.on('message', (message)=>{
if(!message.content.startsWith(prefix)) return;
if(message.content.startsWith(prefix + "help")){
message.channel.send("Here are some commands: ?hello, ?fight");
}

if(message.content.startsWith(prefix + "hello")){
message.channel.send("Hello!")
}

if(message.content.startsWith(prefix + "fight")){
message.channel.send("Well then square up mate!")
}

if(message.content.startsWith(prefix + "settle")){
message.channel.send("just, don't argue.")
}
})



Client.login("NTE2NDAwNzQzMTM4MTk3NTA1.DvNiGA.22nv4mPYNBmUJULnj5DmWHBXJVM");
heck


Like this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group