Permalink
Browse files

Strip it like a cheap whore

Remove lots of things I dont want/need
  • Loading branch information...
Sprizzle committed Jan 12, 2018
1 parent d763da2 commit edfe813f007ad753fe5b89dc159d9200c515c0b8
Showing with 6 additions and 176 deletions.
  1. +0 −3 package.json
  2. +0 −5 src/commands/test_raven.js
  3. +0 −1 src/discord/Client.js
  4. +6 −21 src/index.js
  5. +0 −19 src/util/db.js
  6. +0 −38 src/util/raven.js
  7. +0 −15 src/util/stats.js
  8. +0 −54 src/util/tor.js
  9. +0 −20 src/util/ua.js
View
@@ -10,10 +10,7 @@
"fastboot": "gist:658baf5e5581c6deeab256d6bdd9e7bb",
"hot-shots": "^4.5.0",
"promise_util": "^1.0.1",
"raven": "^2.1.1",
"rethinkdbdash": "^2.3.31",
"snekfetch": "^3.2.4",
"universal-analytics": "^0.4.13",
"ws": "^3.2.0",
"xmldom": "^0.1.27",
"xpath": "0.0.24",

This file was deleted.

Oops, something went wrong.
View
@@ -27,7 +27,6 @@ class Client extends EventEmitter {
this.shard_statuses = [];
this.raven = require('../util/raven');
}
get unavailable() {
View
@@ -1,27 +1,22 @@
if (!process.env.NODE_ENV) process.env.NODE_ENV = 'production';
require('fastboot');
const Discord = require('./discord');
const logger = require('./util/Logger');
const config = require('../config');
const config = require('./config');
const client = new Discord.Client({
presence: (shard_id) => ({
status: 'online',
game: {
name: `@Google help | S${shard_id}`,
type: 0,
url: 'https://google.gus.host',
url: 'butts.butts',
},
}),
});
require('./util/blocked')((n) => logger.error('UV BLOCK', n));
client.ua = require('./util/ua');
client.stats = require('./util/stats');
let prefix;
const commands = client.commands = require('./commands');
@@ -31,10 +26,7 @@ client.on('READY', (packet) => {
client.on('MESSAGE_CREATE', (message, shard_id) => {
if (message.author.bot || !prefix || !prefix.test(message.content)) return;
const raven_context = {
message,
command: null,
};
try {
let [command, ...args] = message.content.replace(prefix, '').trim().split(' ');
if (!command) return;
@@ -46,15 +38,8 @@ client.on('MESSAGE_CREATE', (message, shard_id) => {
message.content = `${command} ${message.content}`;
command = commands.search;
}
raven_context.command = { command: command.name, args };
logger.log('COMMAND', shard_id, command.name);
command(message);
client.stats.increment(`commands.${command.name}`);
} catch (err) {
const event = client.raven.captureException(err, {
extra: raven_context,
});
logger.log('SENTRY EXCEPTION', event);
} finally {
return(console.log("Fuck man IDK"));
}
});
@@ -79,4 +64,4 @@ function updateStats() {
client.stats.gauge('channels', client.channels.size);
}
client.login(config.tokens[process.env.NODE_ENV]);
client.login(config.tokens);
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.

0 comments on commit edfe813

Please sign in to comment.