https://github.com/iScrE4m/Dispenser
https://github.com/iScrE4m/Dispenser
https://github.com/iScrE4m/Dispenser
Goal
from twisted.words.protocols import irc | |
from twisted.internet import reactor, protocol, defer | |
from twisted.python import log | |
class BetBot(irc.IRCClient): | |
nickname = "INSERT YOUR TWITCH USERNAME" | |
password = "oauth: GENERATE YOUR OAUTH TWITCH TOKEN SOMEWHERE" | |
def connectionMade(self): |
DEFAULT_USER='david' | |
export PATH=$PATH:~/.local/bin | |
export ZSH=/home/david/.oh-my-zsh | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
# POWERLEVEL stuff | |
POWERLEVEL9K_MODE='awesome-fontconfig' | |
POWERLEVEL9K_SHORTEN_DIR_LENGTH=3 |
lsusb -d 1532:0a02 -v | |
Bus 001 Device 002: ID 1532:0a02 Razer USA, Ltd | |
Couldn't open device, some information will be missing | |
Device Descriptor: | |
bLength 18 | |
bDescriptorType 1 | |
bcdUSB 1.10 | |
bDeviceClass 0 (Defined at Interface level) | |
bDeviceSubClass 0 |
DROP TABLE IF EXISTS shopping_list; | |
DROP TABLE IF EXISTS recipe_made; | |
DROP TABLE IF EXISTS recipe_ingredients; | |
DROP TABLE IF EXISTS categorized_recipes; | |
DROP TABLE IF EXISTS recipe_category; | |
DROP TABLE IF EXISTS recipe; | |
DROP TABLE IF EXISTS stock; | |
DROP TABLE IF EXISTS ingredient; | |
DROP TABLE IF EXISTS ingredient_type; | |
DROP TABLE IF EXISTS unit; |
let fetchRses = (apiUrl, method) => { | |
return fetch('/rses/api' + apiUrl, {credentials: "include", method: method}) | |
.then(res => { | |
switch (res.status) { | |
case 403: | |
throw 'Unauthorized request'; | |
case 404: | |
throw 'Not found'; | |
case 200: | |
return res.json() |
I hereby claim:
To claim this, I am signing this object: