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.
Merge pull request #59 from FCCouncil/master
AD DEV
- Loading branch information
Showing
280 changed files
with
62,802 additions
and
142 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 |
---|---|---|
|
@@ -8,7 +8,6 @@ config.json | |
config.js | ||
data/ | ||
test.js | ||
config.js.example | ||
|
||
# Runtime data | ||
pids | ||
|
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,4 @@ | ||
language: node_js | ||
node_js: | ||
- "iojs" | ||
- "7" |
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,40 @@ | ||
const Discord = require("discord.js"); | ||
|
||
|
||
|
||
|
||
exports.run = async (client, message) => { | ||
const embed = new Discord.RichEmbed() | ||
.setAuthor(message.guild.name, message.guild.iconURL) | ||
.setTitle('Channel Information') | ||
.addField('Name', `${message.channel.name}`, true) | ||
.addField('Category', `${message.channel.parent.name}`, true) | ||
.addField('Topic', `${message.channel.topic}`, true) | ||
if (message.channel.topic != true) { | ||
embed.addField('Topic', 'None', true) | ||
} | ||
else { | ||
embed.addField('Topic', `${message.channel.topic}`, true) | ||
} | ||
embed.addField('Position', `${message.channel.calculatedPosition}`, true) | ||
embed.addField('Overrides', `${message.channel.permissionOverwrites.size}`, true) | ||
if (message.channel.nsfw === true) { | ||
embed.addField('NSFW', 'Yes', true) | ||
} | ||
embed.setFooter(client.user.username, client.user.avatarURL) | ||
message.channel.send(embed) | ||
} | ||
|
||
exports.conf = { | ||
enabled: true, | ||
guildOnly: false, | ||
aliases: [], | ||
permLevel: "Standard User" | ||
}; | ||
|
||
exports.help = { | ||
name: "channelinfo", | ||
category: "Misc", | ||
description: "Provides information for the channel.", | ||
usage: "channel info" | ||
}; |
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,28 @@ | ||
const Discord = require("discord.js"); | ||
const superagent = require ("superagent"); | ||
|
||
module.exports.run = async (client, message) => { | ||
|
||
const {body} = await superagent | ||
.get ('https://random.dog/woof.json'); | ||
|
||
const dogembed = new Discord.RichEmbed() | ||
.setColor("#f48c42") | ||
.setTitle(":dog: Woof!") | ||
.setImage(body.url); | ||
|
||
message.channel.send(dogembed); | ||
}; | ||
exports.conf = { | ||
enabled: true, | ||
guildOnly: false, | ||
aliases: [], | ||
permLevel: "Standard User" | ||
}; | ||
|
||
exports.help = { | ||
name: "doggo", | ||
category: "Fun", | ||
description: "Provides a random picture of a dog.", | ||
usage: "doggo" | ||
}; |
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 |
---|---|---|
@@ -1,75 +1,75 @@ | ||
const Discord = require("discord.js"); | ||
const status = { | ||
online: "Online", | ||
idle: "Idle", | ||
dnd: "Do Not Disturb", | ||
offline: "Offline/Invisible" | ||
online: "Online", | ||
idle: "Idle", | ||
dnd: "Do Not Disturb", | ||
offline: "Offline/Invisible" | ||
}; | ||
exports.run = async (client, message, args) => { | ||
const msg = await message.channel.send("Loading..."); | ||
const botuser = message.mentions.users.first() ? message.guild.members.get(message.mentions.users.first().id) : message.member; | ||
|
||
|
||
const msg = await message.channel.send("Loading..."); | ||
const botuser = message.mentions.users.first() ? message.guild.members.get(message.mentions.users.first().id) : message.member; | ||
const embed = new Discord.RichEmbed() | ||
.setColor(botuser.displayColor) | ||
.setFooter(`${client.user.username} | ID ${botuser.id} | Alpha Development`); | ||
.setFooter(`${client.user.username} | ID ${botuser.id} | Beta - Master`); | ||
|
||
if (!botuser.user.presence.game) { | ||
embed.setAuthor(botuser.displayName), | ||
embed.addField("Playing", `This user is not playing anything.`, true); | ||
} else { | ||
const game = botuser.user.presence.game; | ||
|
||
try { | ||
embed.setAuthor(botuser.displayName, botuser.user.presence.game.assets.smallImageURL); | ||
} | ||
catch(err) { | ||
embed.setAuthor(botuser.displayName, 'https://cdn.discordapp.com/avatars/460639060851949569/4f545d7d0ee4fb31a411035793c4aef8.png?size=2048'); | ||
} | ||
embed.setAuthor(botuser.displayName, game.assets.smallImageURL); | ||
} catch (err) { | ||
embed.setAuthor(botuser.displayName, "https://cdn.discordapp.com/avatars/460639060851949569/4f545d7d0ee4fb31a411035793c4aef8.png?size=2048"); | ||
} | ||
try { | ||
embed.setThumbnail(botuser.user.presence.game.assets.largeImageURL); | ||
embed.setThumbnail(game.assets.largeImageURL); | ||
} catch (err) { | ||
embed.setThumbnail("https://cdn.discordapp.com/avatars/460639060851949569/4f545d7d0ee4fb31a411035793c4aef8.png?size=2048"); | ||
} | ||
catch(err) { | ||
embed.setThumbnail('https://cdn.discordapp.com/avatars/460639060851949569/4f545d7d0ee4fb31a411035793c4aef8.png?size=2048'); | ||
} | ||
try { | ||
embed.addField("Status", `${status[botuser.user.presence.status]}`, true); | ||
} | ||
catch(err) { | ||
embed.addField("Status", `None`, true); | ||
try { | ||
embed.addField("Status", `${status[botuser.user.presence.status]}`, true); | ||
} catch (err) { | ||
embed.addField("Status", "An error occured while getting the user's status.", true); | ||
} | ||
try { | ||
embed.addField("Playing", `${botuser.user.presence.game ? `${botuser.user.presence.game.name}` : "Not playing anything"}`, true); | ||
} | ||
catch(err) { | ||
embed.addField("Playing", `This user is not playing anything.`, true); | ||
try { | ||
embed.addField("Playing", `${game.name}`, true); | ||
} catch (err) { | ||
embed.addField("Playing", "An error occured while getting the game's name.", true); | ||
} | ||
if (botuser.user.presence.game.state == null) { | ||
embed.addField("Details", `No details`, true); | ||
} | ||
else { | ||
embed.addField("State", `No state`, true); | ||
} | ||
try { | ||
embed.addField("State", `${botuser.user.presence.game.state}`, true); | ||
} | ||
catch(err) { | ||
embed.addField("State", `No state`, true); | ||
try { | ||
embed.addField("Details", `${game.details}`, true) | ||
} | ||
try { | ||
embed.addField("Started", `${botuser.user.presence.game.timestamps.start}`, true) | ||
} | ||
catch(err) { | ||
embed.addField("Started", `None`, true) | ||
catch (err) { | ||
embed.addField("Details", `No Info`, true) | ||
} | ||
try { | ||
embed.addField("State", `${game.state}`, true); | ||
} catch (err) { | ||
embed.addField("State", "No state", true); | ||
} | ||
|
||
try { | ||
embed.addField("Started", `${game.timestamps.start}`, true); | ||
} catch (err) { | ||
embed.addField("Started", `None`, true); | ||
} | ||
} | ||
msg.edit(embed); | ||
}; | ||
|
||
|
||
exports.conf = { | ||
enabled: true, | ||
guildOnly: true, | ||
aliases: ["g"], | ||
permLevel: "Systems Alpha/Dev Tester" | ||
}; | ||
exports.help = { | ||
name: "game", | ||
category: "Misc", | ||
description: "Provides information on the user's game.", | ||
usage: "game" | ||
}; | ||
exports.conf = { | ||
enabled: true, | ||
guildOnly: true, | ||
aliases: ["g"], | ||
permLevel: "Systems Alpha/Dev Tester" | ||
}; | ||
|
||
exports.help = { | ||
name: "game", | ||
category: "Misc", | ||
description: "Provides information on the user's game.", | ||
usage: "game" | ||
}; |
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 |
---|---|---|
@@ -1,23 +1,36 @@ | ||
const Discord = require("discord.js"); | ||
exports.run = async (client, message, args, level) => { | ||
exports.run = async (client, message) => { | ||
|
||
|
||
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("Alpha/Development | ShadowShard"); | ||
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
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,22 @@ | ||
const Discord = require("discord.js"); | ||
exports.run = async (client, message) => { | ||
const mRole = message.mentions.roles.first() | ||
const embed = new Discord.RichEmbed() | ||
.setAuthor(`${client.user.username}`, `${client.user.avatarURL}`) | ||
.addField(`Test`, `${message.guild.roles.find(mRole).hexColor}`) | ||
message.channel.send(embed) | ||
} | ||
exports.conf = { | ||
enabled: false, | ||
guildOnly: true, | ||
aliases: [], | ||
permLevel: "Standard User" | ||
}; | ||
|
||
exports.help = { | ||
name: "roleinfo", | ||
category: "Misc", | ||
description: "Provides info about the mentioned role.", | ||
usage: "roleinfo [...rolename]" | ||
}; | ||
|
Oops, something went wrong.