From e6b4da7e6f3c24f2db928d44919bbb0e2bb27958 Mon Sep 17 00:00:00 2001 From: Kyomotoi <37587870+Kyomotoi@users.noreply.github.com> Date: Tue, 14 Jul 2020 13:10:14 +0800 Subject: Update send.py --- AyaBot/plugins/send.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AyaBot/plugins') diff --git a/AyaBot/plugins/send.py b/AyaBot/plugins/send.py index 39dbc24..ed37638 100644 --- a/AyaBot/plugins/send.py +++ b/AyaBot/plugins/send.py @@ -43,10 +43,10 @@ async def send_to_group(session: CommandSession): group = lg[0] msg = lg[1] - rei = lg[2] + rei = int(lg[2]) if rei: - for i in range(1, int(rei)): + for i in range(1, rei): try: await bot.send_group_msg(group_id = group, message = msg) except: -- cgit v1.2.3