removed blog from chatgpt
added blog to phixxycom added permission for gpt4 queries
This commit is contained in:
parent
8c0c8578d2
commit
b9b9d841c5
2 changed files with 17 additions and 17 deletions
|
|
@ -196,6 +196,22 @@ class PhixxyCom(commands.Cog):
|
|||
|
||||
except Exception as error:
|
||||
return None
|
||||
|
||||
@commands.command(
|
||||
description="Blog",
|
||||
help="Adds your topic to the list of possible future blog topics. Usage: !suggest_blog (topic)",
|
||||
brief="Suggest a blog topic"
|
||||
)
|
||||
async def blog(self, ctx, *args):
|
||||
message = ' '.join(args)
|
||||
if '\n' in message:
|
||||
await ctx.send("Send only one topic at a time.")
|
||||
return
|
||||
else:
|
||||
blogpost_file = f"{self.data_dir}blog_topics.txt"
|
||||
with open(blogpost_file, 'a') as f:
|
||||
f.writelines(message+'\n')
|
||||
await ctx.send("Saved suggestion!")
|
||||
|
||||
async def generate_blog(self):
|
||||
start_time = time.time()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue