use inky env var now
This commit is contained in:
parent
3f30f13ad7
commit
3143d8c443
1 changed files with 7 additions and 0 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue