Added suggest_blog command
This commit is contained in:
parent
82138c3023
commit
54ed97fcec
1 changed files with 11 additions and 0 deletions
|
|
@ -647,6 +647,17 @@ async def rsgp(ctx, amount):
|
|||
output = str(amount) + ' rsgp would cost: $' + str(cost)
|
||||
await ctx.send(output)
|
||||
|
||||
@bot.command()
|
||||
async def suggest_blog(ctx, *args):
|
||||
message = ' '.join(args)
|
||||
if '\n' in message:
|
||||
await ctx.send("Send only one topic at a time.")
|
||||
return
|
||||
else:
|
||||
blogpost_file = "databases/blog_topics.txt"
|
||||
with open(blogpost_file, 'a') as f:
|
||||
f.writelines(message)
|
||||
|
||||
@bot.command()
|
||||
async def blog(ctx):
|
||||
start_time = time.time()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue