I hereby claim:
- I am kbrsh on github.
- I am kbrsh (https://keybase.io/kbrsh) on keybase.
- I have a public key ASCH4EtLMIQskNSeqTlq8KR7V97M12QLBJG61Qn3i-_LAQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| from slackclient import SlackClient | |
| from random import randint | |
| import re | |
| import time | |
| import sqlite3 | |
| import os | |
| userRE = re.compile("<@([\w\d]+)>") | |
| db = sqlite3.connect("Galaxy.db") |
| (function(root, factory) { | |
| /* ======= Global Moon Bars ======= */ | |
| (typeof module === "object" && module.exports) ? module.exports = factory() : root.MoonBars = factory(); | |
| }(this, function() { | |
| var pad = function(section) { | |
| if(section.length === 1) { | |
| return "0" + section; | |
| } else { | |
| return section; |
| const createTable = function(item, length) { | |
| let table = new Array(length); | |
| table[0] = 0; | |
| for(let i = 1; i < length; i++) { | |
| var section = item.substring(0, i + 1); | |
| var sectionLength = section.length; | |
| var val = 0; | |
| for(let j = sectionLength - 1; j > 0; j--) { |
| var crypto = require('crypto'); | |
| var apiKey = function(cb) { | |
| crypto.randomBytes(7, function (err, bytes) { | |
| key = new Buffer((new Date().valueOf()) + (bytes).toString('hex')).toString('base64'); | |
| cb(key); | |
| }); | |
| } | |