mirror of
https://github.com/dizedev/vk_lp.git
synced 2026-09-17 05:09:00 +00:00
Squashed commit of the following:
commit470172e43fAuthor: dize_dev <destersamp@gmail.com> Date: Wed Nov 1 18:09:56 2023 +0600 Обновление v0.5.3 commit7c74c7364dMerge:9c691d88bf604bAuthor: dize_dev <destersamp@gmail.com> Date: Tue Oct 31 23:36:23 2023 +0600 Merge remote-tracking branch 'github/master' into dize # Conflicts: # config.py # routes/__init__.py # routes/delete_msg.py # routes/info_bot.py # routes/rewards.py commit9c691d8bf0Author: dize_dev <destersamp@gmail.com> Date: Tue Oct 31 22:11:13 2023 +0600 Обновление v0.5.2 commit9a0f019eebAuthor: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 23:58:24 2023 +0600 Обновление v0.5.1 Edit code commita4d1a3b690Author: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 23:53:40 2023 +0600 Обновление v0.5 Добавлена команда Пинг, Обнавлена команда Бот, Исправлены ошибки. commit2880f2889dMerge:20d1b085ed0d2fAuthor: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 21:54:06 2023 +0600 Merge remote-tracking branch 'github/dize' into dize commit20d1b08344Author: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 21:52:46 2023 +0600 fixed bug commit31e7bfce6fAuthor: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 21:51:11 2023 +0600 fixed bug commit972b8e94d7Author: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 21:50:47 2023 +0600 fixed bug commit5ed0d2f53dAuthor: /dize <87265715+dizedev@users.noreply.github.com> Date: Mon Oct 30 19:03:23 2023 +0600 Update config.py commit13238d5139Author: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 18:40:06 2023 +0600 edit commit4c99f4042aAuthor: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 18:38:30 2023 +0600 Обновление: v0.4 commit0368bc75ebAuthor: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 18:37:31 2023 +0600 Обновление: v0.3 commit4091e409b5Author: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 18:35:36 2023 +0600 Обновление: v0.3 commit5beb9d01bcAuthor: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 18:28:18 2023 +0600 Обновление: v0.3 commit11c2e8c16eAuthor: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 18:26:34 2023 +0600 Обновление: v0.3 commit4c62f4a920Author: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 18:25:17 2023 +0600 Обновление: v0.3 commit7cf41c6bc3Author: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 18:18:55 2023 +0600 Обновление: v0.1 commit6019f6a287Author: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 18:16:29 2023 +0600 Обновление: v0.2 commitf96505a675Author: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 18:05:42 2023 +0600 Обновление: v0.2 commitbf61685d8eAuthor: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 17:53:33 2023 +0600 Обновление: v0.2 commitb6082e3778Author: dize_dev <destersamp@gmail.com> Date: Mon Oct 30 17:50:32 2023 +0600 Обновление: v0.2
This commit is contained in:
+16
-20
@@ -1,11 +1,8 @@
|
||||
import datetime
|
||||
|
||||
from vkbottle.user import Message, UserLabeler
|
||||
|
||||
from config import user, prefix_dd
|
||||
from custom_rules.permission import Permission
|
||||
from vkbottle.user import Message
|
||||
from config import bl, user, prefix_dd, prefix_bot
|
||||
|
||||
bl = UserLabeler()
|
||||
DD_SCRIPT = (
|
||||
'var i = 0;var msg_ids = [];var count = %d;'
|
||||
'var items = API.messages.getHistory({"peer_id":%d,"count":"200", "offset":"0"}).items;'
|
||||
@@ -19,17 +16,17 @@ DD_SCRIPT = (
|
||||
|
||||
|
||||
@bl.message(
|
||||
Permission(),
|
||||
text=[prefix_dd + " <count:int>"],
|
||||
Permission(),
|
||||
text=[prefix_dd + " <count:int>"],
|
||||
)
|
||||
async def dd_handler(message: Message, count: int = 2):
|
||||
await user.api.execute(
|
||||
DD_SCRIPT % (
|
||||
count,
|
||||
message.peer_id,
|
||||
message.from_id,
|
||||
int(datetime.datetime.now().timestamp())
|
||||
)
|
||||
DD_SCRIPT % (
|
||||
count,
|
||||
message.peer_id,
|
||||
message.from_id,
|
||||
int(datetime.datetime.now().timestamp())
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -39,12 +36,11 @@ async def dd_handler(message: Message, count: int = 2):
|
||||
)
|
||||
async def dd_all_handler(message: Message):
|
||||
count = 1000
|
||||
|
||||
await user.api.execute(
|
||||
DD_SCRIPT % (
|
||||
count,
|
||||
message.peer_id,
|
||||
message.from_id,
|
||||
int(datetime.datetime.now().timestamp())
|
||||
)
|
||||
DD_SCRIPT % (
|
||||
count,
|
||||
message.peer_id,
|
||||
message.from_id,
|
||||
int(datetime.datetime.now().timestamp())
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user