fancy printing

This commit is contained in:
2025-02-06 18:48:50 +01:00
parent 37950cfece
commit db1b94119a
6 changed files with 85 additions and 12 deletions
+8 -2
View File
@@ -2,10 +2,16 @@ from io import TextIOWrapper
from praw import models
import praw
import os
from macros import *
class Bot:
password: str = os.environ["ASSISTANT_R_PASS"]
secret: str = os.environ["ASSISTANT_R_TOKEN"]
password: str = os.environ.get("ASSISTANT_R_PASS")
secret: str = os.environ.get("ASSISTANT_R_TOKEN")
if password is None:
py_error("Environment variable \"ASSISTANT_R_PASS\" is null!")
if secret is None:
py_error("Environment variable \"ASSISTANT_R_TOKEN\" is null!")
r: praw.Reddit = praw.Reddit(
client_id = "iCSRWS6PMlTLwmylCJRYmA",