added force_blog command

This commit is contained in:
phixxy 2024-01-25 02:06:54 -08:00
parent 2f2a962848
commit 4244d0e9ad

View file

@ -197,7 +197,6 @@ class PhixxyCom(commands.Cog):
except Exception as error: except Exception as error:
return None return None
@commands.command()
async def generate_blog(self): async def generate_blog(self):
start_time = time.time() start_time = time.time()
topic = '' topic = ''
@ -256,6 +255,10 @@ class PhixxyCom(commands.Cog):
output = "Blog Updated! (" + str(run_time) + " seconds) https://ai.phixxy.com/ai-blog" output = "Blog Updated! (" + str(run_time) + " seconds) https://ai.phixxy.com/ai-blog"
return output return output
@commands.command()
async def force_blog(self, ctx):
await self.generate_blog()
@commands.command( @commands.command(
description="Website", description="Website",
help="Generates a website using gpt 3.5. Usage: !website (topic)", help="Generates a website using gpt 3.5. Usage: !website (topic)",