I hereby claim:
- I am psykzz on github.
- I am msmith (https://keybase.io/msmith) on keybase.
- I have a public key ASD1sQiexYogAFHBW9faAYYc8LG96uNqjwxmk41kVRzOUwo
To claim this, I am signing this object:
| const Discord = require("discord.js"); | |
| const client = new Discord.Client(); | |
| client.on('message', msg => { | |
| if (msg.content === 'time') { | |
| var today = new Date(); | |
| msg.reply(`Time: ${today.getHours()}:${today.getMinutes()}:${today.getSeconds()}`); | |
| } | |
| }); |
| import struct | |
| class Parser(object): | |
| def __init__(self, filepath): | |
| with open(filepath, 'rb') as fh: | |
| self.parse(fh) | |
| def parse(self, fh): | |
| fh.read(4) # skip random EVTC tag | |
| version = fh.read(8) |
I hereby claim:
To claim this, I am signing this object:
| import csv | |
| STATE = { | |
| "BOSS":0, | |
| "HEADER":1, | |
| "DATA":2, | |
| } | |
| def main(): |
| import time | |
| import json | |
| import datetime | |
| from slackclient import SlackClient | |
| class SlackBot(object): | |
| """Simplified bot responder for slack""" | |
| def __init__(self, api_key, bot_name='Bat Bot'): | |
| super(SlackBot, self).__init__() | |
| self._api_key = api_key |
| import socket | |
| import sys | |
| class IRC: | |
| socket = socket.socket() | |
| read_buffer = '' | |
| def __init__(self): |
I hereby claim:
To claim this, I am signing this object:
| """Speeds up helper to promote 3rd parties""" | |
| from __future__ import print_function | |
| """ JSON replacement | |
| Load order: | |
| > ujson | |
| > yajl | |
| > simplejson |
| ## | |
| class FileCombiner: | |
| """ File combiner class """ | |
| # Mock functions | |
| def _starts(self,a,b): | |
| #print 'start',a,b,a.startswith(b) | |
| return a.startswith(b) | |
| def _ends(self,a,b): | |
| #print 'end',a,b,a.endswith(b) |