Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require('discord.js');
  2. const bot = new Discord.Client();
  3.  
  4. const token = '';
  5.  
  6. const PREFIX = "!";
  7.  
  8.  
  9.  
  10.  
  11.  
  12. bot.on('ready', () =>{
  13.     console.log('This bot is online!');
  14. })
  15.  
  16. bot.on('message', msg=>{
  17.     if(msg.content === "FUCK"){
  18.         msg.reply('WATCH YOUR FUCKING LANGUAGE YOUNG BOII!');
  19.     }
  20. })
  21. bot.on('message', msg=>{
  22.     if(msg.content === "Hello"){
  23.         msg.reply("Hello");
  24.     }else if(msg.content === "hello"){
  25.         msg.reply("Hello");
  26.     }else if(msg.content === "hi"){
  27.         msg.reply("Don't be a lazzy BITCH. Type Hello. DUM FUCKER");
  28.  
  29.     }
  30. })
  31.  
  32. bot.on("message", msg =>{
  33.     if(msg.content === "Ping")
  34.     {
  35.         msg.channel.send("pong");
  36.     }
  37. })
  38.  
  39. bot.on("message", msg =>{
  40.  
  41.     let args = msg.content.substring(PREFIX.length).split(" ");
  42.  
  43.     if(args[0] === "ping")
  44.     {
  45.         msg.reply("pong!");
  46.     }else if(args[0] === "furry")
  47.     {
  48.         msg.reply("Listen I am not that Smart. I AM A CHILD. LEAVE ME ALONE");
  49.     }
  50. })
  51.  
  52. // Set the bot's "Playing: " status (must be in an event!)
  53. bot.on("ready", () => {
  54.     bot.user.setActivity("Slowly", { type: "Dying"})
  55. })
  56. // Set the bot's online/idle/dnd/invisible status
  57. bot.on("ready", () => {
  58.     bot.user.setStatus("online");
  59. });
  60. // Set the bot's presence (activity and status)
  61. bot.on("ready", () => {
  62.     bot.user.setPresence({
  63.         game: {
  64.             name: 'Slowly',
  65.             type: 'Dying'
  66.         },
  67.         status: 'idle'
  68.     })
  69. })
  70.  
  71.  
  72. bot.on ("message", (message) =>{
  73.     msg = message.content.toLowerCase();
  74.  
  75.     if (message.author.bot) return;
  76.  
  77.     mention = message.mentions.users.first();
  78.  
  79.     userid = ` <@${mention}> `
  80.  
  81.     if (msg.startsWith (PREFIX + "send")) {
  82.         if (mention == null) { return; }
  83.         message.delete();
  84.         useridMessage = message.content.slice ("6");
  85.         mention.sendMessage (useridMessage);
  86.  
  87.         message.channel.send ("");
  88.  
  89.     }else if (msg.startsWith (PREFIX + "chat")) {
  90.         if(userid == null) { return; }
  91.         message.delete();
  92.         useridMessage = message.content.slice ("6");
  93.         message.channel.send (useridMessage);
  94.  
  95.     }
  96. })
  97.  
  98.  
  99.  
  100. bot.login(token);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement