use inky env var now

This commit is contained in:
phixxy 2024-02-02 22:41:11 -08:00
parent 3f30f13ad7
commit 3143d8c443

View file

@ -1,11 +1,18 @@
import socket # used to get local IP import socket # used to get local IP
import time import time
import os
import datetime import datetime
import psutil import psutil
from PIL import Image, ImageFont, ImageDraw from PIL import Image, ImageFont, ImageDraw
from discord.ext import commands, tasks from discord.ext import commands, tasks
import inky import inky
def is_enabled():
if os.getenv("inky").lower() == "enabled":
return True
else:
return False
class InkyScreen(commands.Cog): class InkyScreen(commands.Cog):
def __init__(self, bot): def __init__(self, bot):