Skip to content

Instantly share code, notes, and snippets.

View zhudotexe's full-sized avatar

Andrew Zhu zhudotexe

View GitHub Profile
import requests
import time
PROGRAM_SPEED = 100 # .1s per loop
def init():
print("Init - keep this script running!")
import requests
import time
PROGRAM_SPEED = 100 # .1s per loop
def init():
print("Init - keep this script running!")
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))
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():
{
"attacks": [
{
"attackBonus": "strengthMod + proficiencyBonus",
"charId": "34HGdP9BywJezCywL",
"color": "q",
"damage": "1d8 + {strengthMod}",
"damageType": "slashing",
"enabled": true,
"name": "Cone of Cold",
'''
Created on Oct 29, 2016
@author: andrew
'''
import errno
import os
import re
from fuzzywuzzy import process, fuzz
'''
Created on Dec 25, 2016
@author: andrew
'''
from heapq import nlargest, nsmallest
import random
from re import IGNORECASE
import re
'''
Created on Jan 17, 2017
@author: andrew
'''
import asyncio
import inspect
import itertools
import re
'''
Created on Dec 25, 2016
@author: andrew
'''
from heapq import nlargest, nsmallest
from math import floor
import random
from re import IGNORECASE
import re
'''
Created on Mar 27, 2017
@author: andrew
'''
import copy
import os
import signal
import subprocess
import sys