Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- var bot = new Discord.Client();
- const prefix = "!";
- bot.on('ready', ()=>{
- console.log("Bot is online");
- })
- bot.on('message', (message)=>{
- if(!message.content.startsWith(prefix)) return;
- if(message.content.startsWith(prefix + "Assassin")){
- message.channel.send(message.author + "your role is set!");
- author.addRole(author.guild.roles.find("author", "Assassin"));
- }
- })
- bot.login("NDY5NzI2NzQxOTMwMTgwNjEw.DjL8Og.f6wQ6riGfxmdFdVfjtsYS8JO5jQ");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement