Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js')
- const command = require('discord.js-command');
- const bot = new Discord.Client({disableEveryone: True});
- const token = 'NjU0MzA3NjA5NDI3NDQzNzEy.XfDvEA.LTYkDUgsHzKqYS1fbFtn-6P9C_M';
- const prefix = '!';
- const ms = require('MS');
- bot.on('Ready!', () =>{
- console.log('FallenGamers Bot Activated!');
- })
- let args = message.content.substring(prefix.length).split(" ");
- }
- var version = 'BETA - 0.0.1';
- switch (args[0]){
- case 'ping':
- message.channel.sendMessage('Pong!');
- break;
- case 'Twitter';
- message.channel.sendMessage('Our Twitter Is: https://twitter.com/FallenGamers2')
- Break;
- case 'Information'
- if (args[1]) === 'Games')
- message.channel.sendMessage('Right Now FallenGamers has not launched any games.')
- }else{
- message.channel.sendMessage('Invaild Command.')
- }
- Break;
- {
- {)
- case 'Delete'
- if (!args[1]) return message.reply('Invaild Arguement or Rank.')
- message.channel.BulkDelete(args[1]);
- Break
- bot.on('message', msg=>{
- if(msg.content==="help"){
- msg.channel.sendMessage('Here Are The List Of Commands I can do!'
- - !mute - Mutes a person.
- - !Info <whatever> - Gives you information (use Games & Twitter);
- if(cmd === '!{prefix}bot.info')}
- let botembed= new Discord.RichEmbed()
- .setDescription("Bot Information")
- .setColor("#00ffe5")
- .addField("Bot Name", bot.user.username);
- return message.channel.sendMessage();
- }
- case 'mute':
- let User = Message.Guild.Member(message.mentions.users.first() || message.guild.Members.get(args[1])
- if(!person message.reply('ERROR! This User is not in the server! Is this a mistake, if so try again!')
- let mainrole = message.guild.find(role => role.name === "Members");
- let MuteRole = message.guild.find(role => role.name === "Muted");
- if(!muterole) return message.reply('ERROR 404: Mute Role Not Found.')
- let time = (args[2]);
- if(!time){
- return message.reply('ERROR 404: Time Not specified Please try again.');
- person.removeRole(mainrole.id);
- person.AddRole (MuteRole.id);
- Message.channel.sendMessage(`@$(person.user.tag) has been muted for ${(ms(Time))}`);
- setTimeOut(Function(){
- person
- person.addrole(mainrole.id)
- person.removerole(muterole.id)
- message.channel.send('@$[person.user.tag] has been Unmuted!')
- ,} ms(time));
- bot.login('teh token');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement