Merge pull request #63 from jmaliksi/jm_real_stats

Pull real stats if present
This commit is contained in:
Sakimori 2020-12-29 19:10:25 -05:00 committed by GitHub
commit 78172f6128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import database as db
onomancer_url = "https://onomancer.sibr.dev/api/"
name_stats_hook = "generateStats2?name="
name_stats_hook = "getOrGenerateStats?name="
collection_hook = "getCollection?token="
def get_stats(name):

View File

@ -189,6 +189,7 @@ if you did it correctly, you'll get a team embed with a prompt to confirm. hit t
async def execute(self, msg, command):
if db.get_team(command.split('\n',1)[1].split("\n")[0]) == None:
await msg.channel.send(f"Fetching players...")
team = team_from_message(command)
save_task = asyncio.create_task(save_team_confirm(msg, team))
await save_task