Skip to content

Add clan and login to web, modify a lot about database#30

Open
SonodaHanami wants to merge 7 commits intozzbslayer:developfrom
SonodaHanami:master
Open

Add clan and login to web, modify a lot about database#30
SonodaHanami wants to merge 7 commits intozzbslayer:developfrom
SonodaHanami:master

Conversation

@SonodaHanami
Copy link
Copy Markdown
Contributor

No description provided.

@zzbslayer zzbslayer force-pushed the develop branch 2 times, most recently from dffcbb7 to cbe1c1e Compare September 4, 2020 15:39
@zzbslayer zzbslayer force-pushed the develop branch 19 times, most recently from 83ee3f0 to ff545a0 Compare September 9, 2020 16:28
if auth == SUPERUSER:
member['authority_group'] = 1
elif auth == ADMIN:
member['authority_group'] = 10
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it. Get permission when login.

@zzbslayer zzbslayer force-pushed the develop branch 5 times, most recently from 49b106a to 067e859 Compare September 27, 2020 14:13
Reinforced clanbattle damage kind; fix boss hp of JP
@SonodaHanami SonodaHanami force-pushed the master branch 3 times, most recently from c117446 to 81daa0a Compare October 22, 2020 08:36
Comment on lines +906 to +917
prm = re.findall("(\d+)([kK千]?)([wW万]?)", remain)

r, b, hp = bm.get_challenge_progress(1, datetime.now())
if len(prm) != 2:
usage = "【用法/用例】\n!补偿刀计算 伤害1 伤害2"
await bot.kkr_send(ev, usage, at_sender=True)
return

r, b, hp = bm.get_challenge_progress(datetime.now())
dmg1 = int(prm[0][0])
dmg2 = int(prm[1][0])
dmg1 = dmg1 * (1000 if prm[0][1] else 1) * (10000 if prm[0][2] else 1)
dmg2 = dmg2 * (1000 if prm[1][1] else 1) * (10000 if prm[1][2] else 1)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we can deal with the damage number written in different formats at the same time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants