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
Dec 5, 2018
1 parent
88bc26f
commit 74dd1c1
Showing
20 changed files
with
4,510 additions
and
169 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 +1 @@ | ||
{"allowedGuildIDs":["470248906945462272","472913337454297108","113422487378788352","abahahlahalhal","446067825673633794","446067825673633794"]} | ||
{"allowedGuildIDs":["470248906945462272","472913337454297108","113422487378788352","abahahlahalhal","446067825673633794","446067825673633794","400803476814168065"]} |
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,43 @@ | ||
const Discord = require('discord.js'); | ||
|
||
exports.run = async (client, message, args) => { | ||
const msg = await message.channel.send('Fetching invite...'); | ||
try { | ||
await client.fetchInvite(args); | ||
} catch (err) { | ||
return msg.edit(err); | ||
} | ||
|
||
const inviteCode = args; | ||
const guildName = await client.fetchInvite(args).guild.name; | ||
const guildID = await client.fetchInvite(args).guild.id; | ||
const guildMembersOnline = await client.fetchInvite(args).presenceCount; | ||
const inviteUses = await client.fetchInvite(args).uses; | ||
const guildMemberCount = await client.fetchInvite(args).memberCount; | ||
//const guildIcon = client.fetchInvite(args).then(m => m.guild.icon); | ||
|
||
const embed = new Discord.RichEmbed(); | ||
embed.setTitle('Server Invite Information'); | ||
|
||
await embed.addField('Invite Code', inviteCode, true); | ||
await embed.addField('Server Name', guildName, true); | ||
await embed.addField('Server Member Count', `${guildMembersOnline}/${guildMemberCount}`, true); | ||
await embed.addField('Invite Uses', inviteUses, true); | ||
embed.setFooter(`${client.user.username} | Server ID: ${guildID}`, client.user.avatarURL); | ||
embed.setTimestamp(); | ||
msg.edit(embed); | ||
}; | ||
|
||
exports.conf = { | ||
enabled: true, | ||
guildOnly: false, | ||
aliases: ['fetchinvite'], | ||
permLevel: 'Standard User' | ||
}; | ||
|
||
exports.help = { | ||
name: 'getinvite', | ||
category: 'Misc', | ||
description: 'Gets invite information from Discord.', | ||
usage: 'getinvite' | ||
}; |
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,21 +1,61 @@ | ||
//const util = require('../util/util.ts'); | ||
exports.run = async (client, message) => { | ||
//const thisMessage = '🏓 Pong!'; | ||
const msg = await message.channel.send('🏓 Pong!'); | ||
|
||
msg.edit(`🏓 Pong! \`${msg.createdTimestamp - message.createdTimestamp}ms\``); | ||
var __awaiter = (this && this.__awaiter) || function(thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function(resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator['throw'](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function(resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
var __generator = (this && this.__generator) || function(thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), 'throw': verb(1), 'return': verb(2) }, typeof Symbol === 'function' && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function(v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError('Generator is already executing.'); | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y['return'] : op[0] ? y['throw'] || ((t = y['return']) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
}; | ||
|
||
var _this = this; | ||
//const util = require('../util/util.ts'); | ||
exports.run = function(client, message) { return __awaiter(_this, void 0, void 0, function() { | ||
var msg; | ||
return __generator(this, function(_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, message.channel.send('🏓 Pong!')]; | ||
case 1: | ||
msg = _a.sent(); | ||
msg.edit('\uD83C\uDFD3 Pong! `' + (msg.createdTimestamp - message.createdTimestamp) + 'ms`'); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); }; | ||
exports.conf = { | ||
enabled: true, | ||
guildOnly: false, | ||
aliases: [], | ||
permLevel: 'Standard User' | ||
}; | ||
|
||
exports.help = { | ||
name: 'ping', | ||
category: 'Bot Information', | ||
description: 'Pings the bot, without the embed.', | ||
description: 'Pings the bot, and returns the response time.', | ||
usage: 'ping' | ||
}; |
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) => { | ||
const msg = await message.channel.send('Authenticating...'); | ||
const myMessages = await client.stats.get(`${args[1]} | ${message.guild.id}`); | ||
const repPoints = await client.repPoints.get(args[1]); | ||
if (args[0] === 'messages') { | ||
client.stats.set(`${args[1]} | ${message.guild.id}`, args[2]); | ||
await msg.edit(`I have edited \`${args[1]}\` key to \`${args[2]}\`. They now have a total of \`${myMessages}\` messages.`); | ||
} | ||
else if (args[0] === 'reputation') { | ||
client.repPoints.set(args[1], args[2]); | ||
await msg.edit(`I have edited \`${args[1]}\` key to \`${args[2]}\`. They now have a total of \`${repPoints}\` reputation points.`); | ||
} | ||
}; | ||
|
||
exports.conf = { | ||
enabled: true, | ||
guildOnly: true, | ||
aliases: [], | ||
permLevel: 'Systems Administrator' | ||
}; | ||
|
||
exports.help = { | ||
name: 'profileadmin', | ||
category: 'System', | ||
description: 'Changes specified user\'s messages or reputation points.', | ||
usage: 'profileadmin [messages (User ID) (New Messages) || [reputation (User ID) (New Reputation Points)' | ||
}; |
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,25 @@ | ||
exports.run = async (client, message, args) => { | ||
const cleverbot = require('cleverbot.io'); | ||
|
||
const bot = new cleverbot('1DoyBgxuUc3EiKnm', 'FYGWlyIAE85XYjBvB1pUVjGiqhZ9opyT'); | ||
bot.create(function(err, session) { | ||
bot.ask(args, function(err, response) { | ||
message.channel.send(response); // Will likely be: "Living in a lonely world" | ||
}); | ||
}); | ||
|
||
}; | ||
|
||
exports.conf = { | ||
enabled: true, | ||
guildOnly: false, | ||
aliases: ['ask'], | ||
permLevel: 'Standard User' | ||
}; | ||
|
||
exports.help = { | ||
name: 'talk', | ||
category: 'Fun', | ||
description: 'Talk to the bot.', | ||
usage: 'talk' | ||
}; |
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ module.exports = async client => { | |
.setTimestamp(); | ||
|
||
hook.send(embed); | ||
}; | ||
|
||
|
||
|
||
}; |
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.