Skip to content

Instantly share code, notes, and snippets.

Avatar

averyB averwhy

View GitHub Profile
@averwhy
averwhy / button.py
Created Feb 7, 2022
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"