Added suggest_blog command
This commit is contained in:
parent
82138c3023
commit
54ed97fcec
1 changed files with 11 additions and 0 deletions
|
|
@ -646,6 +646,17 @@ async def rsgp(ctx, amount):
|
||||||
cost = (int(amount) * cost_per_bil / 1000000000)
|
cost = (int(amount) * cost_per_bil / 1000000000)
|
||||||
output = str(amount) + ' rsgp would cost: $' + str(cost)
|
output = str(amount) + ' rsgp would cost: $' + str(cost)
|
||||||
await ctx.send(output)
|
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()
|
@bot.command()
|
||||||
async def blog(ctx):
|
async def blog(ctx):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue