mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-16 12:02:16 +00:00
🐛 Plugin birthday fix a bug
修复每月上旬获取当天信息失败的问题
This commit is contained in:
parent
7cd2579bc8
commit
9272405151
@ -40,7 +40,11 @@ class BirthdayPlugin(Plugin, BasePlugin):
|
||||
async def command_start(self, update: Update, context: CallbackContext) -> None:
|
||||
message = update.effective_message
|
||||
user = update.effective_user
|
||||
key = datetime.now().strftime("%m_%d")
|
||||
key = (
|
||||
rm_starting_str(datetime.now().strftime("%m"), "0")
|
||||
+ "_"
|
||||
+ rm_starting_str(datetime.now().strftime("%d"), "0")
|
||||
)
|
||||
args = get_all_args(context)
|
||||
if len(args) >= 1:
|
||||
msg = args[0]
|
||||
|
Loading…
Reference in New Issue
Block a user