fixed bug in blog
This commit is contained in:
parent
b8fe922bd5
commit
748fb794fa
1 changed files with 2 additions and 2 deletions
|
|
@ -716,8 +716,8 @@ async def blog(ctx):
|
|||
blogpost_topics = f.read()
|
||||
f.seek(0)
|
||||
topic = f.readline()
|
||||
blogpost_topics = blogpost_topics.replace(topic, '')
|
||||
with open(blogpost_file, 'w') as f:
|
||||
blogpost_topics = blogpost_topics.replace(topic, '')
|
||||
with open(blogpost_file, 'w') as f:
|
||||
f.write(blogpost_topics)
|
||||
if topic != '':
|
||||
await ctx.send("Writing blogpost")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue