This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Matthew Ray
committed
Sep 16, 2018
1 parent
48c3e54
commit ed9621c
Showing
7 changed files
with
89 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,36 @@ | ||
const Discord = require("discord.js"); | ||
exports.run = async (client, message) => { | ||
if(message.channel.id != "488762614156099585" || "489234703229124608") return; | ||
|
||
|
||
const embed = new Discord.RichEmbed() | ||
.setAuthor(`${client.user.username}`, `${client.user.avatarURL}`) | ||
.setColor(message.member.displayColor) | ||
.addField("Invite Link", "https://discordapp.com/api/oauth2/authorize?client_id=460639060851949569&permissions=8&scope=bot", true) | ||
.setFooter("client.user.username | Beta - Master"); | ||
message.channel.send(embed); | ||
}; | ||
.setFooter(`${client.user.username} | Beta - Master`); | ||
message.member.user.createDM().then(channel => channel.send(embed)) | ||
|
||
const em1 = new Discord.RichEmbed() | ||
.setAuthor(`${client.user.username}`, `${client.user.avatarURL}`) | ||
.setColor(message.member.displayColor) | ||
.setDescription("Invite link sent, check your DMs.") | ||
.setFooter(`${client.user.username} | Beta - Master`); | ||
message.channel.send(em1) | ||
}; | ||
|
||
|
||
|
||
|
||
|
||
exports.conf = { | ||
enabled: true, | ||
guildOnly: true, | ||
guildOnly: false, | ||
aliases: ["get", "join"], | ||
permLevel: "Systems Alpha/Dev Tester" | ||
}; | ||
|
||
exports.help = { | ||
name: "invite", | ||
category: "Bot Information", | ||
description: "Provides the invite link.", | ||
description: "Provides the bot's invite link.", | ||
usage: "invite" | ||
}; |
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,58 @@ | ||
const Discord = require("discord.js"); | ||
const talkedRecently = new Set(); | ||
exports.run = async (client, message) => { | ||
if (talkedRecently.has(message.author.id) && !message.member.roles.has("490364533550874644")) { | ||
|
||
message.channel.send("You are being rate limited!" + message.author); | ||
} else { // eslint-disable-line no-unused-vars | ||
const msg = await message.channel.send("Loading... *If you are seeing this message longer than 5 seconds, an error may have occurred.*"); | ||
function checkBots(guild) { | ||
let botCount = 0; | ||
guild.members.forEach(member => { | ||
if(member.user.bot) botCount++; | ||
}); | ||
return botCount; | ||
} | ||
function checkMembers(guild) { | ||
let memberCount = 0; | ||
guild.members.forEach(member => { | ||
if(!member.user.bot) memberCount++; | ||
}); | ||
return memberCount; | ||
} | ||
const embed = new Discord.RichEmbed() | ||
.setAuthor(`${client.user.username}`, `${client.user.avatarURL}`) | ||
.setTitle("Server Information") | ||
.setThumbnail(message.guild.iconURL) | ||
.setColor(message.member.displayColor) | ||
.addField('Server Owner', message.guild.owner, true) | ||
.addField('Server Region', message.guild.region, true) | ||
.addField('Channels', message.guild.channels.size, false) | ||
.addField("Created", `${message.guild.createdAt}`, false) | ||
.addField('Members', message.guild.memberCount, true) | ||
.addField('Humans', checkMembers(message.guild), true) | ||
.addField('Bots', checkBots(message.guild), true) | ||
.addField('Verification Level', message.guild.verificationLevel, true) | ||
.setFooter(`${client.user.username} | Beta - Master`); | ||
msg.edit(embed); | ||
talkedRecently.add(message.author.id); | ||
setTimeout(() => { | ||
// Removes the user from the set after a minute | ||
talkedRecently.delete(message.author.id); | ||
}, 2000); | ||
}; | ||
} | ||
|
||
exports.conf = { | ||
enabled: true, | ||
guildOnly: true, | ||
aliases: [], | ||
permLevel: "Standard User" | ||
}; | ||
|
||
exports.help = { | ||
name: "serverinfo", | ||
category: "Misc", | ||
description: "Provides information about the current guild.", | ||
usage: "serverinfo" | ||
}; |
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,3 @@ | ||
const Discord = require('discord.js'); | ||
const Manager = new Discord.ShardingManager('./index.js'); | ||
Manager.spawn(2); // This example will spawn 2 shards (5,000 guilds); |