This file contains hidden or 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
import requests | |
import time | |
PROGRAM_SPEED = 100 # .1s per loop | |
def init(): | |
print("Init - keep this script running!") | |
This file contains hidden or 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
import requests | |
import time | |
PROGRAM_SPEED = 100 # .1s per loop | |
def init(): | |
print("Init - keep this script running!") | |
This file contains hidden or 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
def parse_data_entry(text): | |
"""Parses a list or string from astranauta data. | |
:returns str - The final text.""" | |
if not isinstance(text, list): return str(text) | |
out = [] | |
for entry in text: | |
if not isinstance(entry, dict): | |
out.append(str(entry)) |
This file contains hidden or 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
import asyncio | |
import os | |
import discord | |
from discord.ext import commands | |
bot = commands.Bot(command_prefix='r!', description="A small archiver bot.", pm_help=True) | |
class Credentials(): |
This file contains hidden or 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
{ | |
"attacks": [ | |
{ | |
"attackBonus": "strengthMod + proficiencyBonus", | |
"charId": "34HGdP9BywJezCywL", | |
"color": "q", | |
"damage": "1d8 + {strengthMod}", | |
"damageType": "slashing", | |
"enabled": true, | |
"name": "Cone of Cold", |
This file contains hidden or 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
''' | |
Created on Oct 29, 2016 | |
@author: andrew | |
''' | |
import errno | |
import os | |
import re | |
from fuzzywuzzy import process, fuzz |
This file contains hidden or 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
''' | |
Created on Dec 25, 2016 | |
@author: andrew | |
''' | |
from heapq import nlargest, nsmallest | |
import random | |
from re import IGNORECASE | |
import re |
This file contains hidden or 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
''' | |
Created on Jan 17, 2017 | |
@author: andrew | |
''' | |
import asyncio | |
import inspect | |
import itertools | |
import re |
This file contains hidden or 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
''' | |
Created on Dec 25, 2016 | |
@author: andrew | |
''' | |
from heapq import nlargest, nsmallest | |
from math import floor | |
import random | |
from re import IGNORECASE | |
import re |
This file contains hidden or 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
''' | |
Created on Mar 27, 2017 | |
@author: andrew | |
''' | |
import copy | |
import os | |
import signal | |
import subprocess | |
import sys |