Skip to content

Instantly share code, notes, and snippets.

View averwhy's full-sized avatar

averyB averwhy

View GitHub Profile
@averwhy
averwhy / button.py
Created February 7, 2022 20:00
TikTok Button Thing (unfinished)
View button.py
import random
import yaml
from os.path import exists
class Config:
def __init__(self):
pass
def load(self, filename="button_stats"):
"""Loads the config file. Creates it if it doesnt exist. Returns the opened file object."""
filename = f"{filename}.yml"