Skip to content

Instantly share code, notes, and snippets.

View averwhy's full-sized avatar

averyB averwhy

View GitHub Profile
averwhy /
Created February 7, 2022 20:00
TikTok Button Thing (unfinished)
import random
import yaml
from os.path import exists
class Config:
def __init__(self):
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"