This repository has been archived by the owner on Jan 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Glitch (cytrusbot)
committed
Jan 28, 2019
1 parent
340dc91
commit 92aa61d
Showing
50 changed files
with
406 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const Discord = require('discord.js'); | ||
const ytdl = require('ytdl-core'); | ||
|
||
exports.run = async (client, message, args, level) => { // eslint-disable-line no-unused-vars | ||
|
||
if (!client.music[message.guild.id]) { | ||
client.music[message.guild.id] = {queue: []}; | ||
} | ||
|
||
var server = client.music[message.guild.id]; | ||
|
||
if(ytdl.validateURL(args[0])) { | ||
server.queue.push(args[0]); | ||
message.channel.send('The song is in the queue!'); | ||
} else { | ||
message.reply('Thats not a valid YouTube link!'); | ||
} | ||
}; | ||
|
||
exports.conf = { | ||
enabled: true, | ||
aliases: [], | ||
permLevel: 'User' | ||
}; | ||
|
||
exports.help = { | ||
name: 'add', | ||
category: 'Music', | ||
description: 'Adds a song to the server\'s queue', | ||
usage: 'add <youtube video URL>' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
const Discord = require('discord.js'); | ||
|
||
exports.run = async (client, message, args, level) => { | ||
const user = message.mentions.users.first(); | ||
const settings = client.getSettings(message.guild.id); | ||
|
||
if (user) { | ||
const member = message.guild.member(user); | ||
if (member) { | ||
member.ban(args.slice(1).join(' ')).then(() => { | ||
message.reply(`Successfully banned ${user.tag}`); | ||
|
||
const modLogChannel = settings.modLogChannel; | ||
if (modLogChannel) { | ||
let embed = new Discord.RichEmbed() | ||
.setTitle('User Ban') | ||
.setColor('#eeeeee') | ||
.setDescription(`Name: ${user.username}\nID: ${user.id}\nReason: ${args.slice(1).join(' ')}`); | ||
|
||
message.guild.channels.find(c => c.name === settings.modLogChannel).send(embed); | ||
} | ||
}).catch(err => { | ||
message.reply('I was unable to ban the member'); | ||
}); | ||
} else { | ||
message.reply('That user isn\'t in this guild!'); | ||
} | ||
} else { | ||
message.reply('You didn\'t mention the user to ban!'); | ||
} | ||
}; | ||
|
||
exports.conf = { | ||
enabled: true, | ||
aliases: [], | ||
permLevel: 'Administrator' | ||
}; | ||
|
||
exports.help = { | ||
name: 'addrole', | ||
category: 'Moderation', | ||
description: 'Adds the specifyed role to your role list', | ||
usage: 'addrole <name/id> <role name/id>' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
*/ | ||
exports.run = async (client, message, args, level) => { // eslint-disable-line no-unused-vars | ||
const execute = (command) => { | ||
const exec = require('child_process').exec | ||
|
||
exec(command, (err, stdout, stderr) => { | ||
message.author.send(stdout) | ||
}) | ||
} | ||
|
||
execute(args.join(' ')); | ||
}; | ||
|
||
exports.conf = { | ||
enabled: true, | ||
aliases: ['exec'], | ||
permLevel: 'Bot Manager' | ||
}; | ||
|
||
exports.help = { | ||
name: 'execute', | ||
category: 'System', | ||
description: 'Executes a command in the shell', | ||
usage: 'execute <shell command>' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.