Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js');
- const bot = new Discord.Client();
- const token = '';
- const PREFIX = "!";
- bot.on('ready', () =>{
- console.log('This bot is online!');
- })
- bot.on('message', msg=>{
- if(msg.content === "FUCK"){
- msg.reply('WATCH YOUR FUCKING LANGUAGE YOUNG BOII!');
- }
- })
- bot.on('message', msg=>{
- if(msg.content === "Hello"){
- msg.reply("Hello");
- }else if(msg.content === "hello"){
- msg.reply("Hello");
- }else if(msg.content === "hi"){
- msg.reply("Don't be a lazzy BITCH. Type Hello. DUM FUCKER");
- }
- })
- bot.on("message", msg =>{
- if(msg.content === "Ping")
- {
- msg.channel.send("pong");
- }
- })
- bot.on("message", msg =>{
- let args = msg.content.substring(PREFIX.length).split(" ");
- if(args[0] === "ping")
- {
- msg.reply("pong!");
- }else if(args[0] === "furry")
- {
- msg.reply("Listen I am not that Smart. I AM A CHILD. LEAVE ME ALONE");
- }
- })
- // Set the bot's "Playing: " status (must be in an event!)
- bot.on("ready", () => {
- bot.user.setActivity("Slowly", { type: "Dying"})
- })
- // Set the bot's online/idle/dnd/invisible status
- bot.on("ready", () => {
- bot.user.setStatus("online");
- });
- // Set the bot's presence (activity and status)
- bot.on("ready", () => {
- bot.user.setPresence({
- game: {
- name: 'Slowly',
- type: 'Dying'
- },
- status: 'idle'
- })
- })
- bot.on ("message", (message) =>{
- msg = message.content.toLowerCase();
- if (message.author.bot) return;
- mention = message.mentions.users.first();
- userid = ` <@${mention}> `
- if (msg.startsWith (PREFIX + "send")) {
- if (mention == null) { return; }
- message.delete();
- useridMessage = message.content.slice ("6");
- mention.sendMessage (useridMessage);
- message.channel.send ("");
- }else if (msg.startsWith (PREFIX + "chat")) {
- if(userid == null) { return; }
- message.delete();
- useridMessage = message.content.slice ("6");
- message.channel.send (useridMessage);
- }
- })
- bot.login(token);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement