bot: Added site info command
All checks were successful
Build Docker / Build Master (push) Successful in 23s
Build Docker / Build Bot (push) Successful in 24s

This commit is contained in:
2023-08-24 14:25:58 +10:00
parent a626248564
commit 587693f98f
2 changed files with 5 additions and 7 deletions

View File

@@ -69,13 +69,15 @@ async def createsite(ctx, domain: str, licence: str):
if r.status_code == 200:
json = r.json()
if json['success'] == "true":
await ctx.response.send_message(f"Site {domain} creating...\nPlease send /siteinfo domain:{domain}")
await ctx.response.send_message(f"Site {domain} creating...\nPlease wait a few minutes and then send /siteinfo domain:{domain}")
else:
await ctx.response.send_message(f"Error creating site\n" + json['error'])
else:
await ctx.response.send_message(f"Error creating site\n" + r.text)
# When the bot is ready
@client.event
async def on_ready():