Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

SonodaHanami
Copy link
Contributor

No description provided.

if auth == SUPERUSER:
member['authority_group'] = 1
elif auth == ADMIN:
member['authority_group'] = 10
Copy link
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.

Reinforced clanbattle damage kind; fix boss hp of JP
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
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