mirror of
https://github.com/hongwt/hekili-rotation-bot.git
synced 2026-05-06 21:41:10 +08:00
修改按钮识别率
This commit is contained in:
2
bot.py
2
bot.py
@@ -31,7 +31,7 @@ class WowBot:
|
||||
# drop all keys that are not in the valid keys list
|
||||
key_text = [key for key in key_text if (key >= '0' and key <= 'z')]
|
||||
key_text = ''.join(key_text)
|
||||
if len(key_text) > 0 and len(key_text) <= 2:
|
||||
if len(key_text) == 1:
|
||||
return key_text[0]
|
||||
else:
|
||||
return ''
|
||||
|
||||
Reference in New Issue
Block a user