make meme folders
This commit is contained in:
parent
a3f16e6d92
commit
7c50265a18
1 changed files with 9 additions and 0 deletions
|
|
@ -10,6 +10,15 @@ class Meme(commands.Cog):
|
||||||
|
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
self.working_dir = "tmp/meme/"
|
||||||
|
self.folder_setup()
|
||||||
|
|
||||||
|
def folder_setup(self):
|
||||||
|
try:
|
||||||
|
if not os.path.exists(self.working_dir):
|
||||||
|
os.mkdir(self.working_dir)
|
||||||
|
except:
|
||||||
|
self.bot.logger.exception("Meme failed to make directories")
|
||||||
|
|
||||||
async def answer_question(self, topic, model="gpt-3.5-turbo"):
|
async def answer_question(self, topic, model="gpt-3.5-turbo"):
|
||||||
headers = {
|
headers = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue