author int64 658 755k | date stringdate 2012-06-12 08:34:29 2024-07-22 14:51:21 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods listlengths 1 16 | language stringclasses 20
values | license stringclasses 3
values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
718,889 | 07.02.2020 00:40:49 | -18,000 | 58fddaaded2d11e2b8f50e58b054e8acaaedd957 | Handler rule text accepts list | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/handler/handler.py",
"new_path": "vkbottle/handler/handler.py",
"diff": "@@ -198,23 +198,29 @@ class MessageHandler:\ndef _text_rule(\nself,\nfunc: typing.Callable,\n- text: typing.Union[str, Pattern],\n+ text: typing.Union[str, Pattern, typing.List[t... | Python | MIT License | vkbottle/vkbottle | Handler rule text accepts list (#23) |
718,838 | 07.02.2020 23:10:28 | -10,800 | 585039372806dd4f83309e04e01f6b4386b717fa | v1 Big Speed Commit
[need tests]
+ new examples
+ fix chat_mention | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/tests/branches_new.py",
"diff": "+from vkbottle import Bot, Message\n+from vkbottle.branch import ClsBranch, ExitBranch\n+import os\n+\n+\n+# Add variable TOKEN to your env variables\n+bot = Bot(os.environ[\"TOKEN\"])\n+\n+\n+@bot.branc... | Python | MIT License | vkbottle/vkbottle | v1 Big Speed Commit
[need tests]
+ new examples
+ fix chat_mention |
718,838 | 08.02.2020 13:04:31 | -10,800 | f9a37aa44f211218794084e966a426932c1895f3 | v1 logger - loguru | [
{
"change_type": "MODIFY",
"old_path": "examples/raid.py",
"new_path": "examples/raid.py",
"diff": "@@ -9,7 +9,7 @@ bot = Bot(\"token\")\nasync def raid(ans: Message, text: str, times: int):\nfor i in range(times):\nawait ans(text)\n- await asyncio.sleep(1)\n+ await asyncio.sleep(0.2)\nbot.run_polli... | Python | MIT License | vkbottle/vkbottle | v1 logger - loguru |
718,838 | 09.02.2020 13:22:31 | -10,800 | a8a54c7144292e21d9777a5d910b8d98ae1e94bc | v1 Add Examples
+ reformat by black | [
{
"change_type": "MODIFY",
"old_path": "examples/longpoll_bot.py",
"new_path": "examples/longpoll_bot.py",
"diff": "@@ -10,7 +10,7 @@ If bot can't do it and VKError with codes 901 or 902 appeared, bot uses logger t\n\"\"\"\n-@bot.on.message(text=\"hi\")\n+@bot.on.message(text=[\"hi\", \"hello\"])\na... | Python | MIT License | vkbottle/vkbottle | v1 Add Examples
+ reformat by black |
718,889 | 09.02.2020 19:24:58 | -18,000 | a64001f9c7e28c41f5422ca450dc19c1bd2bdfa1 | Attachment typing | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/types/attachments/attachments.py",
"new_path": "vkbottle/types/attachments/attachments.py",
"diff": "from enum import Enum\nfrom ..base import BaseModel\n-from .photo import Photo, PostedPhoto\n+from .photo import Photo\nfrom .video import Video\nfrom... | Python | MIT License | vkbottle/vkbottle | Attachment typing (#26) |
718,838 | 09.02.2020 22:37:28 | -10,800 | b80a7a6d5c7abebe221b529d1b97150a568c03d0 | v1 Requirements incomp fix | [
{
"change_type": "MODIFY",
"old_path": "setup.py",
"new_path": "setup.py",
"diff": "@@ -7,8 +7,7 @@ except:\nwith open(\"README.md\", \"r\") as f:\nlong_description = f.read()\n-with open(\"requirements.txt\", \"r\") as f:\n- requirements = f.read().splitlines()\n+requirements = [\"aiohttp\", \"pyda... | Python | MIT License | vkbottle/vkbottle | v1 Requirements incomp fix |
718,838 | 10.02.2020 07:35:28 | -10,800 | a3ef790501356ffa3d18ba1a88a681eb493d4613 | v1 Add mobile regime | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot.py",
"new_path": "vkbottle/framework/bot.py",
"diff": "@@ -36,6 +36,7 @@ class Bot(HTTP, EventProcessor):\ngroup_id: int = None,\ndebug: typing.Union[str, bool] = True,\nlog_to_path: typing.Union[str, bool] = None,\n+ mobile: bool = Fals... | Python | MIT License | vkbottle/vkbottle | v1 Add mobile regime |
718,838 | 10.02.2020 17:48:49 | -10,800 | da447b516dace646ed4dcaf105fa0cf63e7612bc | v2 Update version | [
{
"change_type": "MODIFY",
"old_path": "setup.py",
"new_path": "setup.py",
"diff": "@@ -7,11 +7,9 @@ except:\nwith open(\"README.md\", \"r\") as f:\nlong_description = f.read()\n-requirements = [\"aiohttp\", \"pydantic\", \"contextvars\", \"vbml\", \"loguru\"]\n-\nsetuptools.setup(\nname=\"vkbottle\... | Python | MIT License | vkbottle/vkbottle | v2 Update version |
718,838 | 10.02.2020 22:10:21 | -10,800 | 2a313610e2645f3a75fc845e98341089c25160f2 | v2 Auto Logger Regime choicer
+ remove loguru from requirements | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/tests/forwarder.py",
"diff": "+from vkbottle.user import User\n+from vkbottle import TaskManager, VKError\n+import os, random, asyncio\n+\n+user = User(os.environ[\"TOKEN\"])\n+\n+\n+async def start_forwarding(peer_id: int, text: str):\... | Python | MIT License | vkbottle/vkbottle | v2 Auto Logger Regime choicer
+ remove loguru from requirements |
718,889 | 11.02.2020 12:56:15 | -18,000 | 4881f8d1f1aba0c19789c5f220ccb6bb61e48c1b | Update wall_comment.py | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/types/wall_comment.py",
"new_path": "vkbottle/types/wall_comment.py",
"diff": "from .base import BaseModel\n-from .attachments.attachments_w import AttachmentsW\n+from .attachments.attachments_w import AttachmentW\nfrom typing import List\n@@ -22,7 +2... | Python | MIT License | vkbottle/vkbottle | Update wall_comment.py (#28) |
718,838 | 11.02.2020 16:08:31 | -10,800 | 89a325e277e9f79d15e337cd43ec89e39f75fbd6 | v2 fix logging and secret longpoll check | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot.py",
"new_path": "vkbottle/framework/bot.py",
"diff": "@@ -209,6 +209,9 @@ class Bot(HTTP, EventProcessor):\nasync def run(self, wait: int = DEFAULT_WAIT):\nself.__wait = wait\nlogger.debug(\"Polling will be started. Is it OK?\")\n+ if s... | Python | MIT License | vkbottle/vkbottle | v2 fix logging and secret longpoll check |
718,889 | 11.02.2020 21:11:55 | -18,000 | b5b86f22deac03ab942dcfb3fdc704e7223b8e89 | Edit processing | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/processor.py",
"new_path": "vkbottle/framework/processor.py",
"diff": "@@ -53,7 +53,12 @@ class EventProcessor(RegexHelper):\ntask = None\nfor rules in self.on.rules:\n- if all([await rule.check(message) for rule in rules]):\n+\n+ for rule i... | Python | MIT License | vkbottle/vkbottle | Edit processing (#29) |
718,889 | 12.02.2020 16:24:07 | -18,000 | 2d8ca687ebb86ce89106966cf200afc967d63b11 | Dataclasses instead of dict in event handling functions | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/processor.py",
"new_path": "vkbottle/framework/processor.py",
"diff": "@@ -6,6 +6,7 @@ from ..utils import logger\nfrom vbml import Patcher\nfrom ..types.message import Message\n+from ..types.events import EVENT_DICT\nfrom ..api import Api, ... | Python | MIT License | vkbottle/vkbottle | Dataclasses instead of dict in event handling functions (#30) |
718,838 | 12.02.2020 17:27:32 | -10,800 | 69f9b9507c1d07fe1e81c8a2f1f74021f7e35b42 | v2 Add integration of uvloop and loguru | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot.py",
"new_path": "vkbottle/framework/bot.py",
"diff": "import traceback, sys, typing\n-from asyncio import get_event_loop, AbstractEventLoop\n+import asyncio\nfrom ..const import DEFAULT_BOT_FOLDER, VBML_INSTALL\nfrom ..api import Api, r... | Python | MIT License | vkbottle/vkbottle | v2 Add integration of uvloop and loguru |
718,838 | 13.02.2020 18:58:34 | -10,800 | 13b1279ae7cfe2f3a19061c7a5cdf9cc40447655 | v2 Fix payload | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/handler/handler.py",
"new_path": "vkbottle/handler/handler.py",
"diff": "@@ -230,7 +230,11 @@ class MessageHandler:\nreturn rule\n+ def concatenate_payload(self):\n+ self.rules = self.payload.rules + self.rules\n+\ndef concatenate(self, message_handle... | Python | MIT License | vkbottle/vkbottle | v2 Fix payload |
718,838 | 13.02.2020 19:18:28 | -10,800 | fe835f7544c65ffb569dd898fe838480d53851a1 | v2 Change payload priority | [
{
"change_type": "MODIFY",
"old_path": "examples/tests/stress.py",
"new_path": "examples/tests/stress.py",
"diff": "@@ -3,7 +3,7 @@ import os, random, string, asyncio\nfrom asyncio import sleep\n# Add variable TOKEN to your env variables\n-bot = Bot(os.environ[\"TOKEN\"], debug=\"ERROR\")\n+bot = Bo... | Python | MIT License | vkbottle/vkbottle | v2 Change payload priority |
718,838 | 15.02.2020 09:03:45 | -10,800 | 7506cc6b3164bfb0f26e6a3f86f0f192187307ef | v2 Auto reload | [
{
"change_type": "MODIFY",
"old_path": "requirements.txt",
"new_path": "requirements.txt",
"diff": "aiohttp\ncontextvars\npydantic\n+watchgod\nvbml\n\\ No newline at end of file\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "vkbottle/utils/auto_reload.py",
"diff": "... | Python | MIT License | vkbottle/vkbottle | v2 Auto reload |
718,838 | 18.02.2020 06:37:39 | -10,800 | 0206cee3e091b98a84b95e2df2ddd42077703e92 | v2 api changes | [
{
"change_type": "MODIFY",
"old_path": "examples/callback_bot.py",
"new_path": "examples/callback_bot.py",
"diff": "-from vkbottle import Bot, Message\nfrom aiohttp.web import RouteTableDef, Application, Request, run_app\n+from vkbottle import Bot\napp = Application()\nroutes = RouteTableDef()\n"
... | Python | MIT License | vkbottle/vkbottle | v2 api changes |
718,838 | 18.02.2020 23:02:40 | -10,800 | 3f021018dc941c2034a7c8f4b6a76919ef06cfb1 | v2 Stable fix | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot.py",
"new_path": "vkbottle/framework/bot.py",
"diff": "@@ -234,9 +234,11 @@ class Bot(HTTP, EventProcessor):\nwhile True:\nevent = await self.make_long_request(self.long_poll_server)\n+ if isinstance(event, dict):\nself.loop.create_task(... | Python | MIT License | vkbottle/vkbottle | v2 Stable fix |
718,838 | 20.02.2020 17:43:27 | -10,800 | 52f73621390d6b7e8aae5032091c802381a9e2d0 | lil additions | [
{
"change_type": "MODIFY",
"old_path": "setup.py",
"new_path": "setup.py",
"diff": "@@ -9,7 +9,7 @@ except:\nsetuptools.setup(\nname=\"vkbottle\",\n- version=\"2.02\",\n+ version=\"2.03\",\nauthor=\"timoniq\",\ndescription=\"Working with VK by this homogenetic way and it's awesome!\",\nlong_descript... | Python | MIT License | vkbottle/vkbottle | lil additions |
718,838 | 21.02.2020 21:40:35 | -10,800 | 6d0553f9c3869688d9848c7bbefd2a4bfccca829 | v2 User Updates | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -109,14 +109,14 @@ bot.run_polling()\n```python\nfrom vkbottle.user import User\n-from vkbottle.user.types import Message\n+from vkbottle.user import types\nfrom vkbottle.rule import VBMLUserRule\nuser = User(\"... | Python | MIT License | vkbottle/vkbottle | v2 User Updates |
718,838 | 22.02.2020 16:54:23 | -10,800 | 40fde7126096666bc17f288649157b5e415fd2be | v2 Minor user polling fix | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/user.py",
"new_path": "vkbottle/framework/user.py",
"diff": "@@ -108,7 +108,7 @@ class User(HTTP):\nwhile True:\ntry:\nevent = await self.make_long_request(self.long_poll_server)\n- if isinstance(event, dict):\n+ if isinstance(event, dict) a... | Python | MIT License | vkbottle/vkbottle | v2 Minor user polling fix |
718,867 | 24.02.2020 01:16:44 | 21,600 | eaa616967fcd1a229f50645dfb8d8e88eba29f97 | Added inline param in Keyboard class | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/api/keyboard/keyboard.py",
"new_path": "vkbottle/api/keyboard/keyboard.py",
"diff": "@@ -30,9 +30,10 @@ class KeyboardButton:\nclass Keyboard:\n- def __init__(self, one_time: bool = False):\n+ def __init__(self, one_time: bool = False, inline: bool = ... | Python | MIT License | vkbottle/vkbottle | Added inline param in Keyboard class (#34) |
718,838 | 25.02.2020 16:39:56 | -10,800 | 40ba662752f30627195e1a35c22735e27fd2f203 | v2 Fix broken
broke import! | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/rule/rule.py",
"new_path": "vkbottle/framework/rule/rule.py",
"diff": "@@ -7,7 +7,6 @@ from vbml import Pattern, Patcher\nfrom ...types import Message, BaseModel\nfrom ...types import user_longpoll\nfrom ...utils import flatten\n-from ...use... | Python | MIT License | vkbottle/vkbottle | v2 Fix broken
@zpodushkin broke import! |
718,889 | 25.02.2020 18:41:24 | -18,000 | 54f6b616f81e6a427b6a6ee90c6c953a88382dbc | Event object choose | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/rule/rule.py",
"new_path": "vkbottle/framework/rule/rule.py",
"diff": "import typing\nimport json\n+import inspect\nfrom copy import copy\nfrom vbml import Pattern, Patcher\n@@ -27,12 +28,14 @@ class AbstractRule(Copy):\ndef __init_subclass_... | Python | MIT License | vkbottle/vkbottle | Event object choose (#39) |
718,889 | 25.02.2020 18:42:56 | -18,000 | cd1162f2d30937a3ae11515591defd40e1de62b0 | Inherit type | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/types/events/community/event.py",
"new_path": "vkbottle/types/events/community/event.py",
"diff": "from enum import Enum\n+from typing import Union\nfrom ...base import BaseModel\nfrom .events_list import EventList as events\nfrom . import events_obje... | Python | MIT License | vkbottle/vkbottle | Inherit type (#40) |
718,838 | 25.02.2020 17:47:19 | -10,800 | 4a00f1a2517e8cad6b8ca1c817add1bc72cebf9d | v2 Fix of the main shit | [
{
"change_type": "MODIFY",
"old_path": "examples/tests/forwarder.py",
"new_path": "examples/tests/forwarder.py",
"diff": "@@ -9,6 +9,12 @@ async def start_forwarding(peer_id: int, text: str):\nmid = await user.api.messages.send(peer_id=peer_id, message=text, random_id=random.randint(-2e9, 2e9))\nfor... | Python | MIT License | vkbottle/vkbottle | v2 Fix of the main shit |
718,838 | 25.02.2020 18:02:21 | -10,800 | 7ba02ccf830d955456ef5456c6556e35e1bbc923 | v2 user handler concatenate | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/handler/user.py",
"new_path": "vkbottle/handler/user.py",
"diff": "@@ -16,6 +16,9 @@ class Handler:\nself.rules: typing.List[UserLongPollEventRule] = list()\nself.mode = mode\n+ def concatenate(self, other: \"Handler\"):\n+ self.rules += other.rules\n... | Python | MIT License | vkbottle/vkbottle | v2 user handler concatenate |
718,838 | 26.02.2020 22:04:28 | -10,800 | 0390c85f7753c45be82d187b46ee4ccb7bb78b25 | v2 senior bro | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/processor.py",
"new_path": "vkbottle/framework/processor.py",
"diff": "@@ -148,13 +148,7 @@ class EventProcessor(RegexHelper):\n:param obj:\n:return:\n\"\"\"\n- if isinstance(handler_return, (str, int, dict, list, tuple, float)):\n+ if handl... | Python | MIT License | vkbottle/vkbottle | v2 senior bro |
718,867 | 27.02.2020 06:58:16 | 21,600 | 8cc5fa6e948d6aa58db82f8b6fae0dd57ea18d40 | Edit README Callback description | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -70,23 +70,28 @@ bot.run_polling()\n```python\nfrom vkbottle import Bot, Message\n-from aiohttp.web import RouteTableDef, Application, Request, run_app\n+from aiohttp import web\n+bot = Bot(token=\"my-token\", s... | Python | MIT License | vkbottle/vkbottle | Edit README Callback description (#43) |
718,838 | 27.02.2020 19:48:58 | -10,800 | b16f8cb72f32967c028ded47af14fb4d2bdf612e | v2 Lil additions and editions | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot.py",
"new_path": "vkbottle/framework/bot.py",
"diff": "@@ -4,7 +4,6 @@ import traceback\nimport typing\nfrom vbml import Patcher, PatchedValidators\n-from json import dumps\nfrom ._event import EventTypes\nfrom ._status import BotStatus,... | Python | MIT License | vkbottle/vkbottle | v2 Lil additions and editions |
718,838 | 27.02.2020 20:14:24 | -10,800 | 3a579e392ce376c8140ce25d37bd88bafe6659f5 | v2 TokenQueue | [
{
"change_type": "MODIFY",
"old_path": "examples/tests/stress.py",
"new_path": "examples/tests/stress.py",
"diff": "@@ -29,12 +29,12 @@ async def pronounce(ans: Message, t=100):\n@bot.on.message_handler(text=[\"/results\", \"/re\"])\n-async def res():\n+async def res(ans: Message):\nreturn f\"{TIMES... | Python | MIT License | vkbottle/vkbottle | v2 TokenQueue |
718,838 | 27.02.2020 20:51:09 | -10,800 | 30d35b54d0fa44a7d989d01e20f7e6993807a780 | v2 noqa hotfix | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot.py",
"new_path": "vkbottle/framework/bot.py",
"diff": "@@ -134,12 +134,15 @@ class Bot(HTTP, EventProcessor):\n)\nfor m in messages[\"items\"]:\nif m[\"from_id\"] != -self.group_id:\n+ try:\nawait self.emulate(\n{\n\"type\": \"message_ne... | Python | MIT License | vkbottle/vkbottle | v2 noqa hotfix |
718,838 | 28.02.2020 00:23:47 | -10,800 | d0a026675e4e18da5444b5fc425cddd0ba028e3a | v2 skip_updates fix | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot.py",
"new_path": "vkbottle/framework/bot.py",
"diff": "@@ -116,6 +116,8 @@ class Bot(HTTP, EventProcessor):\n)\nif offset == 0:\nlogger.info(f\"Conversation count - {conversations['count']}\")\n+ if conversations['count'] == 0:\n+ return... | Python | MIT License | vkbottle/vkbottle | v2 skip_updates fix |
718,838 | 28.02.2020 15:58:12 | -10,800 | 2ed4b7d6b525f4f98ba39831ba42dd126a437f19 | v2 fix branch log | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/processor.py",
"new_path": "vkbottle/framework/processor.py",
"diff": "@@ -157,7 +157,7 @@ class EventProcessor(RegexHelper):\nself.branch.add(obj[\"peer_id\"], handler_return.branch_name, **handler_return.branch_kwargs)\nelif isinstance(han... | Python | MIT License | vkbottle/vkbottle | v2 fix branch log |
718,838 | 28.02.2020 16:33:57 | -10,800 | 701c2dc1d181e46075ccc901099e83237c9bcad1 | v2 Update docs | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -63,7 +63,7 @@ async def wrapper(ans: Message, name):\nawait ans(\"Hello, {}\".format(name))\n-bot.run_polling()\n+bot.run_polling(skip_updates=False)\n```\n### Callback\n"
},
{
"change_type": "MODIFY",
... | Python | MIT License | vkbottle/vkbottle | v2 Update docs |
718,838 | 28.02.2020 21:41:33 | -10,800 | d0c67a560ce23b3d85a92120f56db86acdc89829 | v2 Add patcher comp | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot.py",
"new_path": "vkbottle/framework/bot.py",
"diff": "@@ -46,6 +46,7 @@ class Bot(HTTP, EventProcessor):\ngroup_id: int = None,\ndebug: typing.Union[str, bool] = True,\nlog_to_path: typing.Union[str, bool] = None,\n+ patcher: Patcher = ... | Python | MIT License | vkbottle/vkbottle | v2 Add patcher comp |
718,838 | 29.02.2020 23:14:37 | -10,800 | 8fd74c9ccf324787788a615e11f8504ae054e682 | Add tortoise examples with pre_process | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/middleware.py",
"diff": "+from time import time as current\n+\n+from tortoise import Tortoise\n+\n+from vkbottle import Bot, Message\n+from vkbottle.rule import AbstractMessageRule\n+from .tortoise_models import User\n+\n+bot = Bot(\"to... | Python | MIT License | vkbottle/vkbottle | Add tortoise examples with pre_process |
718,838 | 02.03.2020 19:55:46 | -10,800 | 366f7b612dad7bc87ddfc78924c896e11d99598e | v2.4 Add possibility to ignore errors by the option throw_errors to False | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/api/api.py",
"new_path": "vkbottle/api/api.py",
"diff": "@@ -24,7 +24,7 @@ async def request(\nreturn await session.post(url, data=params or {})\n-async def request_instance(method: str, req: tuple):\n+async def request_instance(method: str, req: tupl... | Python | MIT License | vkbottle/vkbottle | v2.4 Add possibility to ignore errors by the option throw_errors to False |
718,838 | 03.03.2020 22:27:41 | -10,800 | c77ccacdbefec51b0d7c2e7bb4e73f29f63e7cf2 | v2.4 Middlewares | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/tests/middleware.py",
"diff": "+from vkbottle import Bot, Message\n+from vkbottle.ext import Middleware\n+import os\n+from time import time\n+\n+# Add variable TOKEN to your env variables\n+bot = Bot(os.environ[\"TOKEN\"], debug=\"DEBUG... | Python | MIT License | vkbottle/vkbottle | v2.4 Middlewares |
718,838 | 03.03.2020 22:28:16 | -10,800 | 9d1845726f4083f3ab3f4f5ac29ced5c266f5c3a | v2.4 Example | [
{
"change_type": "MODIFY",
"old_path": "examples/middleware.py",
"new_path": "examples/middleware.py",
"diff": "@@ -4,6 +4,7 @@ from tortoise import Tortoise\nfrom vkbottle import Bot, Message\nfrom vkbottle.rule import AbstractMessageRule\n+from vkbottle.ext import Middleware\nfrom .tortoise_models... | Python | MIT License | vkbottle/vkbottle | v2.4 Example |
718,838 | 04.03.2020 12:08:51 | -10,800 | bf19123bdb0d08d0797892c9c66fc1a3a1733f33 | v2.4 throw_errors | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/api/api.py",
"new_path": "vkbottle/api/api.py",
"diff": "import time\nimport asyncio\n+import typing\nfrom ..utils import logger\n@@ -90,8 +91,12 @@ class ApiInstance(ContextInstanceMixin):\nself._request = HTTPRequest()\nself.throw_errors: bool = thr... | Python | MIT License | vkbottle/vkbottle | v2.4 throw_errors |
718,838 | 04.03.2020 17:58:50 | -10,800 | b58eebe88d3d20a8d16cfe0c7f67092bc7f64107 | v2.4 Reduce dead pale flesh | [
{
"change_type": "MODIFY",
"old_path": "examples/tests/middleware.py",
"new_path": "examples/tests/middleware.py",
"diff": "@@ -13,7 +13,9 @@ class UserCheck(Middleware):\nreturn message.from_id > 0\n-@bot.on.message_handler(lev={\"hello\": [\"reaction to hello\"], \"hi\": {\"source\": \"reaction to... | Python | MIT License | vkbottle/vkbottle | v2.4 Reduce dead pale flesh |
718,838 | 06.03.2020 14:09:49 | -10,800 | 6741f82e00fbac01229a5ad5b35b2d0e461431dc | v2.4 remove trash | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/branch/branch.py",
"new_path": "vkbottle/framework/branch/branch.py",
"diff": "@@ -3,17 +3,12 @@ import typing, asyncio\nfrom .cls import FunctionBranch, AbstractBranch\nfrom ...api.exceptions import BranchError\n-from ...utils import folder... | Python | MIT License | vkbottle/vkbottle | v2.4 remove trash |
718,838 | 06.03.2020 17:55:59 | -10,800 | eff6940028e6dcaf0a40b654a5b6599f9e6a7227 | v2.4 lil fix | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/api/uploader/uploader.py",
"new_path": "vkbottle/api/uploader/uploader.py",
"diff": "@@ -63,7 +63,7 @@ class PhotoUploader(Uploader):\nfor i, file in enumerate(pathlike):\nfiles[\"file{}\".format(i + 1)] = self.open_pathlike(file)\n- uploader = self.u... | Python | MIT License | vkbottle/vkbottle | v2.4 lil fix |
718,838 | 20.03.2020 22:07:44 | -10,800 | 8800e0e8fec61a02a49f2946d56a15af490ed3ae | Poor fix of
[need tests] | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/user.py",
"new_path": "vkbottle/framework/user.py",
"diff": "@@ -36,7 +36,6 @@ class User(HTTP):\nself.__debug: bool = debug\nself.__api: UserApi = UserApi(token)\nUserApi.set_current(self.__api)\n- self._mode = mode\nself._patcher: vbml.Pat... | Python | MIT License | vkbottle/vkbottle | Poor fix of #36
[need tests] |
718,838 | 20.03.2020 22:19:33 | -10,800 | 87f4342dd1eab356602159bb5c6cee7a508293d4 | Possibility from issue | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/rule/rule.py",
"new_path": "vkbottle/framework/rule/rule.py",
"diff": "import typing\nimport inspect\n+import re\nfrom copy import copy\nfrom vbml import Pattern, Patcher\n@@ -215,6 +216,7 @@ class VBML(AbstractMessageRule):\ntyping.List[typ... | Python | MIT License | vkbottle/vkbottle | Possibility from issue #52 |
718,838 | 21.03.2020 16:29:15 | -10,800 | 2a590bbc2aecfa25abbd478a3ff5d2ecf2348710 | v2.6 Branch disposal | [
{
"change_type": "MODIFY",
"old_path": "examples/tests/branches_new.py",
"new_path": "examples/tests/branches_new.py",
"diff": "from vkbottle import Bot, Message\n-from vkbottle.branch import ClsBranch, ExitBranch\n+from vkbottle.rule import VBMLRule\n+from vkbottle.branch import ClsBranch, ExitBran... | Python | MIT License | vkbottle/vkbottle | v2.6 Branch disposal |
718,838 | 22.03.2020 23:20:35 | -10,800 | ee7543764a6766713f01e71e7e0414179a5f1e25 | Edit handler to able poorly use handler as a blueprint | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/handler/handler.py",
"new_path": "vkbottle/handler/handler.py",
"diff": "@@ -36,7 +36,7 @@ def should_ignore_ans(func: typing.Callable, arguments: list) -> bool:\nclass Handler:\n- def __init__(self, group_id: int = 0):\n+ def __init__(self, group_id:... | Python | MIT License | vkbottle/vkbottle | Edit handler to able poorly use handler as a blueprint |
718,838 | 23.03.2020 12:41:32 | -10,800 | 44fc93e9fde5b92edcbcde331e2e499040cc5a99 | v2.6 concatenate_blueprint_from_dir | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/ext.py",
"new_path": "vkbottle/ext.py",
"diff": "from .handler.middleware import Middleware\n+from .framework import Bot\n+import glob, importlib, os\n+\n+\n+def concatenate_blueprint_from_dir(bot: Bot, dirname: str, dp: str = \"dp\"):\n+ all_list = l... | Python | MIT License | vkbottle/vkbottle | v2.6 concatenate_blueprint_from_dir |
718,838 | 24.03.2020 13:06:15 | -10,800 | ea16bead4e295a3bfa90aa685fdfeb28e73bae66 | v2.6 Add data expander for User Longpoll and changed code style to black | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/api/uploader/uploader.py",
"new_path": "vkbottle/api/uploader/uploader.py",
"diff": "@@ -78,7 +78,9 @@ class PhotoUploader(Uploader):\nasync def upload_wall_photo(self, pathlike, **params) -> typing.Union[str, dict]:\nserver = await self.vk.api.reques... | Python | MIT License | vkbottle/vkbottle | v2.6 Add data expander for User Longpoll and changed code style to black |
718,838 | 24.03.2020 13:09:26 | -10,800 | 2a1fce853626dde0afd44a29836dde6bbff6ca6d | v2.6 Fix mistaken | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/types/user_longpoll.py",
"new_path": "vkbottle/types/user_longpoll.py",
"diff": "@@ -24,7 +24,7 @@ class Message(BaseModel):\nref_source: str = None\nimportant: bool = None\ngeo: Geo = None\n- reply_message: int = None\n+ reply_message: \"Message\" = ... | Python | MIT License | vkbottle/vkbottle | v2.6 Fix mistaken |
718,838 | 24.03.2020 13:12:55 | -10,800 | 2e87bbec67d9a9e5917f87b12cd52c3e4b64a69e | v2.6 Fix forgotten | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/types/user_longpoll.py",
"new_path": "vkbottle/types/user_longpoll.py",
"diff": "@@ -3,6 +3,7 @@ from .attachments import Geo\nfrom .message import sep_bytes, MessageAction\nfrom ..api import UserApi\nimport random\n+import typing\nAPI = UserApi.get_c... | Python | MIT License | vkbottle/vkbottle | v2.6 Fix forgotten |
718,838 | 24.03.2020 22:16:42 | -10,800 | 4597ef96eddee395701cccc5f7cb51fae1c4022c | v2.6 Sweet middleware arguments | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/processor.py",
"new_path": "vkbottle/framework/processor.py",
"diff": "@@ -35,6 +35,7 @@ class EventProcessor(RegexHelper):\nasync def _processor(self, obj: dict, client_info: dict):\nprocessor = dict(obj=obj, client_info=client_info)\n+ mid... | Python | MIT License | vkbottle/vkbottle | v2.6 Sweet middleware arguments |
718,838 | 25.03.2020 00:36:03 | -10,800 | 0ec25c5639a506cc7a0b02c7345b6834e7910347 | v2.6 Sweet add_branch without a decorator | [
{
"change_type": "MODIFY",
"old_path": "examples/tests/branches_new.py",
"new_path": "examples/tests/branches_new.py",
"diff": "from vkbottle import Bot, Message\nfrom vkbottle.rule import VBMLRule\n-from vkbottle.branch import ClsBranch, ExitBranch, rule_disposal\n+from vkbottle.branch import ClsBr... | Python | MIT License | vkbottle/vkbottle | v2.6 Sweet add_branch without a decorator |
718,838 | 25.03.2020 01:02:38 | -10,800 | e88edf30ebcde11b7e154c29f26fc07e06eb710f | v2.6 Update version in root | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/__init__.py",
"new_path": "vkbottle/__init__.py",
"diff": "@@ -5,3 +5,4 @@ from .api import template_gen, TemplateElement\nfrom .api.keyboard import keyboard_gen\nfrom .api.exceptions import *\nfrom .api.uploader import PhotoUploader\n+from .const imp... | Python | MIT License | vkbottle/vkbottle | v2.6 Update version in root |
718,838 | 25.03.2020 01:25:26 | -10,800 | 29bf53e38c6830a391c5b57350978008e0f318b2 | v2.6 Check updates with description | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/handler/handler.py",
"new_path": "vkbottle/handler/handler.py",
"diff": "@@ -96,10 +96,10 @@ class Handler:\ncurrent_rest = await get_current_rest()\nif current_rest[\"version\"] != __version__:\nlogger.info(\n- \"You are using old version of VKBottle... | Python | MIT License | vkbottle/vkbottle | v2.6 Check updates with description |
718,838 | 25.03.2020 11:53:36 | -10,800 | 3ae1b907979845744fe0fc83d5c78032b9eada02 | v2.6 Middleware args are inherited to the branched_processor | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/processor.py",
"new_path": "vkbottle/framework/processor.py",
"diff": "@@ -50,7 +50,7 @@ class EventProcessor(RegexHelper):\nmiddleware_args.append(mr)\nif message.from_id in self.branch.queue or message.peer_id in self.branch.queue:\n- awai... | Python | MIT License | vkbottle/vkbottle | v2.6 Middleware args are inherited to the branched_processor |
718,838 | 25.03.2020 12:07:05 | -10,800 | aeb7d3f0452d4a7a7f3f5da78706b5f151bfc31f | v2.6 Args in AbstractBranch fix | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/branch/cls.py",
"new_path": "vkbottle/framework/branch/cls.py",
"diff": "@@ -23,7 +23,7 @@ class AbstractBranch(Copy):\nasync def enter(self, ans: Message):\n...\n- async def branch(self, ans: Message):\n+ async def branch(self, ans: Message... | Python | MIT License | vkbottle/vkbottle | v2.6 Args in AbstractBranch fix |
718,838 | 25.03.2020 14:29:10 | -10,800 | aa3d4ed3ef1c01428f240db1d515416c24fb3704 | v2.6 pre_process is ABANDONED but fixed still | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot.py",
"new_path": "vkbottle/framework/bot.py",
"diff": "@@ -289,6 +289,8 @@ class Bot(HTTP, EventProcessor):\nself.__secret = None\nif not self.status.dispatched:\n+ if self.on.pre:\n+ self.middleware.add_middleware(self.on.pre)\nawait se... | Python | MIT License | vkbottle/vkbottle | v2.6 pre_process is ABANDONED but fixed still |
718,838 | 25.03.2020 16:34:51 | -10,800 | ce76cc49287147e1c79b182b965d6b1b2ef167e1 | v2.6 Added doc uploader | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/tests/vkbottle_bot/img/2.txt",
"diff": "+Hi, it is a silly document\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "vkbottle/__init__.py",
"new_path": "vkbottle/__init__.py",
"diff": "@@ -... | Python | MIT License | vkbottle/vkbottle | v2.6 Added doc uploader |
718,838 | 27.03.2020 20:49:25 | -10,800 | cfc773b9c15a2c34eeee5e6063a2117e8b2b6d6c | v2.6 Add possibility to skip all errors | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot.py",
"new_path": "vkbottle/framework/bot.py",
"diff": "@@ -98,6 +98,7 @@ class Bot(HTTP, EventProcessor):\n# Sign assets\nself.__api: Api = Api(token, throw_errors=throw_errors)\n+ self._throw_errors: bool = throw_errors\nApi.set_current... | Python | MIT License | vkbottle/vkbottle | v2.6 Add possibility to skip all errors |
718,838 | 27.03.2020 21:08:06 | -10,800 | 19d6abf505b8b67eef26295cd73fa2c334bd1897 | v2.6 Fix (abandoned) pre_process | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/handler/handler.py",
"new_path": "vkbottle/handler/handler.py",
"diff": "@@ -67,6 +67,7 @@ class Handler:\nself.chat_message.concatenate(handler.chat_message)\nself.message_handler.concatenate(handler.message_handler)\nself.event.rules += handler.even... | Python | MIT License | vkbottle/vkbottle | v2.6 Fix (abandoned) pre_process |
718,838 | 28.03.2020 11:38:02 | -10,800 | c4aadeae9fea5bd699732219ee0b626be60b9f89 | v2.6 Silly fix | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/processor.py",
"new_path": "vkbottle/framework/processor.py",
"diff": "@@ -49,7 +49,7 @@ class EventProcessor(RegexHelper):\nelif mr is not None:\nmiddleware_args.append(mr)\n- if message.from_id in self.branch.queue or message.peer_id in se... | Python | MIT License | vkbottle/vkbottle | v2.6 Silly fix |
718,838 | 28.03.2020 21:45:30 | -10,800 | e4e97e48fbe87cfb3b6f0f63caf0f91381c7ed05 | v2.6 Delete exited branches without pop them | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/branch/branch.py",
"new_path": "vkbottle/framework/branch/branch.py",
"diff": "@@ -105,4 +105,4 @@ class BranchManager:\ndef exit(self, uid: int) -> AbstractBranch:\nif uid in self._branch_queue:\n- return self._branch_queue.pop(uid, None)\n... | Python | MIT License | vkbottle/vkbottle | v2.6 Delete exited branches without pop them |
718,838 | 29.03.2020 13:28:29 | -10,800 | d2fd55a2da4857c5062609d0189e8aaed746fb7a | v2.6 Add auto_reload_dir | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot.py",
"new_path": "vkbottle/framework/bot.py",
"diff": "@@ -270,6 +270,7 @@ class Bot(HTTP, EventProcessor):\n*,\nskip_updates: bool = True,\nauto_reload: bool = False,\n+ auto_reload_dir: str = \".\",\non_shutdown: typing.Callable = None... | Python | MIT License | vkbottle/vkbottle | v2.6 Add auto_reload_dir |
718,838 | 31.03.2020 01:29:08 | -10,800 | 995c8a7a1ab1d797214c6faa95d78d0308169bbc | Nothing has changed | [
{
"change_type": "MODIFY",
"old_path": "examples/tests/branches_new.py",
"new_path": "examples/tests/branches_new.py",
"diff": "@@ -9,11 +9,11 @@ bot = Bot(os.environ[\"TOKEN\"])\nclass LovelessBranch(ClsBranch):\n- async def branch(self, ans: Message):\n+ async def branch(self, ans: Message, *args)... | Python | MIT License | vkbottle/vkbottle | Nothing has changed |
718,838 | 03.04.2020 17:13:42 | -10,800 | 8d72a0b558a1205380792f1dea8b38e81a517a1d | v2.7 Add filters | [
{
"change_type": "MODIFY",
"old_path": "examples/bot_decorators.py",
"new_path": "examples/bot_decorators.py",
"diff": "@@ -48,7 +48,7 @@ async def wrapper(ans: Message):\nawait ans(\"New chat name: {}\".format(ans.action.text))\n-# REGEX ARGS USE\n+# REGEX ARGS USAGE\n@bot.on.message(\"my name is <... | Python | MIT License | vkbottle/vkbottle | v2.7 Add filters |
718,844 | 05.04.2020 21:19:29 | -10,800 | 0a2e819eb4043058a2f2caf4dc4f85005558576b | Poor fix get_updates for a while | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot/bot.py",
"new_path": "vkbottle/framework/bot/bot.py",
"diff": "@@ -134,6 +134,7 @@ class Bot(HTTP, AsyncHandleManager):\nchunk = list(chunks(updates, 100))\nfor mid in chunk:\n+ try:\nmessages = await self.api.request(\n\"messages.getByI... | Python | MIT License | vkbottle/vkbottle | Poor fix get_updates for a while (#58) |
718,838 | 08.04.2020 00:31:47 | -10,800 | 836fc9de14d35ce9640ea2ec8bb0954421c78fb0 | v2.7 Flock of fixes | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -79,7 +79,8 @@ app = web.Application()\nasync def executor(request: web.Request):\nevent = await request.json()\n- return await bot.emulate(event=event, confirmation_token=\"ConfirmationToken\")\n+ emulation = a... | Python | MIT License | vkbottle/vkbottle | v2.7 Flock of fixes |
718,838 | 08.04.2020 13:18:57 | -10,800 | 1781a4f3716763e71fbb809a66c3ed95adfdff20 | v2.7 fix api | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot/bot.py",
"new_path": "vkbottle/framework/bot/bot.py",
"diff": "@@ -119,20 +119,17 @@ class Bot(HTTP, AsyncHandleManager):\nclose, offset = False, 0\nwhile not close:\n- conversations = await self.api.request(\n- \"messages.getConversatio... | Python | MIT License | vkbottle/vkbottle | v2.7 fix api |
718,838 | 08.04.2020 16:03:53 | -10,800 | 8fc27b8fc302c0a59fd9f18272def7a5a0990fe7 | v2.7 Fix bare requests response and AbstractBranchGenerator typing
+ fix uploader (as a consequence from fix of bare requests) | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/api/api/request.py",
"new_path": "vkbottle/api/api/request.py",
"diff": "@@ -78,7 +78,7 @@ class Request:\nlogger.debug(f\"Response: {response}\")\nif not response_model:\n- return response\n+ return response[\"response\"]\nresp = response_model(**res... | Python | MIT License | vkbottle/vkbottle | v2.7 Fix bare requests response and AbstractBranchGenerator typing
+ fix uploader (as a consequence from fix of bare requests) |
718,838 | 08.04.2020 21:39:21 | -10,800 | 58430160de4f4b60fe3fa6e189a1b1fb9f25d6d5 | v2.7 Some fixes for API and Branches maintenance
+ made add, exit (and load) branch managers to work asynchronous ( + change in examples)
+ fix User LP expanding models
+ swap random_id and attachment parameters in message answering function
+ some fixes in API specifically | [
{
"change_type": "MODIFY",
"old_path": "examples/tests/branches_new.py",
"new_path": "examples/tests/branches_new.py",
"diff": "@@ -39,7 +39,7 @@ class AnotherBranch(ClsBranch):\n@bot.on.message_handler(text=[\"say <word>\", \"add <word>\"])\nasync def pronounce(ans: Message, word):\n- bot.branch.ad... | Python | MIT License | vkbottle/vkbottle | v2.7 Some fixes for API and Branches maintenance
+ made add, exit (and load) branch managers to work asynchronous ( + change in examples)
+ fix User LP expanding models
+ swap random_id and attachment parameters in message answering function
+ some fixes in API specifically |
718,838 | 09.04.2020 01:36:35 | -10,800 | a8972c45f5e2ca0052ee91e39e848a2b2385e52f | v2.7 DatabaseBranch
+ add structured example with documentation
+ example of SqliteBranch implementation
[wait for your addons with different database integrations] | [
{
"change_type": "MODIFY",
"old_path": "examples/middleware.py",
"new_path": "examples/middleware.py",
"diff": "@@ -3,8 +3,8 @@ from time import time as current\nfrom tortoise import Tortoise\nfrom vkbottle import Bot, Message\n-from vkbottle.rule import AbstractMessageRule\nfrom vkbottle.ext import... | Python | MIT License | vkbottle/vkbottle | v2.7 DatabaseBranch
+ add structured example with documentation
+ example of SqliteBranch implementation
[wait for your addons with different database integrations] |
718,867 | 09.04.2020 02:36:19 | 18,000 | df4986a5be496a23810603d75644cf2b5ef51555 | Filter bug fixes, small refactoring and carousel removal | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/__init__.py",
"new_path": "vkbottle/__init__.py",
"diff": "@@ -2,7 +2,6 @@ from .framework import Bot, User\nfrom .framework.framework import branch\nfrom .types.message import Message\nfrom .utils.task import TaskManager\n-from .api import template_g... | Python | MIT License | vkbottle/vkbottle | Filter bug fixes, small refactoring and carousel removal (#62) |
718,838 | 09.04.2020 14:02:52 | -10,800 | 0c821f942bedf2b15ee01f4c305ced9d3324898b | v2.7 Fix DictBranch generator type | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/framework/branch/dict_branch.py",
"new_path": "vkbottle/framework/framework/branch/dict_branch.py",
"diff": "@@ -7,14 +7,12 @@ from .standart_branch import ImmutableBranchData\nfrom vkbottle.api.exceptions import BranchError\n-BRANCH_DATA = ... | Python | MIT License | vkbottle/vkbottle | v2.7 Fix DictBranch generator type |
718,838 | 12.04.2020 21:03:52 | -10,800 | bdb2938a87ec4e968715aef0b2a819380ba63f8c | v2.7 Add description for API, remove template documentation | [
{
"change_type": "DELETE",
"old_path": "docs/template.md",
"new_path": null,
"diff": "-# Template\n-## Carousel\n-Import elements:\n-```python\n-from vkbottle import template_gen, TemplateElement\n-```\n-`template_gen` - create template json by the template elements\n-\n-Example:\n-```python\n-from ... | Python | MIT License | vkbottle/vkbottle | v2.7 Add description for API, remove template documentation |
718,838 | 12.04.2020 21:10:20 | -10,800 | 4365917a7022f8e4e5f772ab2e90d9e0ecfe08c9 | v2.7 Fix | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/framework/rule/filters/filter.py",
"new_path": "vkbottle/framework/framework/rule/filters/filter.py",
"diff": "@@ -7,6 +7,9 @@ class AbstractFilter:\nself.rules: typing.Tuple[AbstractRule] = rules\nself.context = RuleExecute()\n+ def create(... | Python | MIT License | vkbottle/vkbottle | v2.7 Fix #60 |
718,838 | 12.04.2020 22:15:19 | -10,800 | 17c41fd3891a13497164389159dc63ea9b71249a | v2.7 Remove docs | [
{
"change_type": "DELETE",
"old_path": "docs/emulation.scheme.png",
"new_path": "docs/emulation.scheme.png",
"diff": "Binary files a/docs/emulation.scheme.png and /dev/null differ\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "docs/todo - rewrite docs",
"diff": "+to... | Python | MIT License | vkbottle/vkbottle | v2.7 Remove docs |
718,838 | 13.04.2020 13:14:23 | -10,800 | 6f4e6f73c5bc0498ea2b154e07e6ecf4cb10b2cd | v2.7 Templates Idea | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/tests/templates/echo_bot.py",
"diff": "+from vkbottle.framework.bot.templates.echo import Echo\n+from vkbottle import Bot\n+import os\n+\n+bot = Bot(os.environ[\"TOKEN\"], debug=\"DEBUG\")\n+Echo(bot).ready().run()\n"
},
{
"chan... | Python | MIT License | vkbottle/vkbottle | v2.7 Templates Idea |
718,838 | 13.04.2020 13:41:01 | -10,800 | eb8da55564ff245990c36ed72e7da853a8acb0e9 | v2.7 Templates optimization | [
{
"change_type": "MODIFY",
"old_path": "examples/tests/templates/echo_bot.py",
"new_path": "examples/tests/templates/echo_bot.py",
"diff": "from vkbottle.framework.bot.templates.echo import Echo\n-from vkbottle import Bot\nimport os\n-bot = Bot(os.environ[\"TOKEN\"], debug=\"DEBUG\")\n-Echo(bot).rea... | Python | MIT License | vkbottle/vkbottle | v2.7 Templates optimization |
718,838 | 13.04.2020 13:59:31 | -10,800 | e01b0a983b0a94960fdfb1f5d1de2657c2654110 | v2.7 Change version + fix photo types | [
{
"change_type": "DELETE",
"old_path": "__init__.py",
"new_path": "__init__.py",
"diff": ""
},
{
"change_type": "MODIFY",
"old_path": "setup.py",
"new_path": "setup.py",
"diff": "@@ -9,7 +9,7 @@ except:\nsetuptools.setup(\nname=\"vkbottle\",\n- version=\"2.6\",\n+ version=\"2.7\"... | Python | MIT License | vkbottle/vkbottle | v2.7 Change version + fix photo types |
718,838 | 13.04.2020 14:55:49 | -10,800 | 8defc4f1bb3e938143a85f4b6fceeacb9be91c4c | v2.7 Add some beautiful properties to Message | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/types/message.py",
"new_path": "vkbottle/types/message.py",
"diff": "@@ -23,6 +23,14 @@ class Message(MessageType, GetApi):\ndef chat_id(self) -> int:\nreturn self.peer_id - 2000000000\n+ @property\n+ def from_chat(self) -> bool:\n+ return self.peer_i... | Python | MIT License | vkbottle/vkbottle | v2.7 Add some beautiful properties to Message |
718,838 | 13.04.2020 17:14:27 | -10,800 | 28e01cf36147784ab32be106a147901edae9f4f0 | v2.7 fix types | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/user/user.py",
"new_path": "vkbottle/framework/user/user.py",
"diff": "@@ -49,7 +49,10 @@ class User(HTTP):\n)\nself.on: UserHandler = UserHandler()\n- self.logger = LoggerLevel(\"INFO\" if debug else \"ERROR\")\n+ if isinstance(debug, bool)... | Python | MIT License | vkbottle/vkbottle | v2.7 fix types |
718,838 | 13.04.2020 18:59:08 | -10,800 | b192ff5c062f5f33b57ee83c9f65ecac5ce17835 | v2.7 fix shuffle_tokens example | [
{
"change_type": "MODIFY",
"old_path": "examples/tests/user/shuffle_tokens.py",
"new_path": "examples/tests/user/shuffle_tokens.py",
"diff": "-from vkbottle.user import User, types\n+from vkbottle.user import User, Message\nfrom vkbottle.api.api.builtin import LimitedTokenGenerator\nimport os\n@@ -1... | Python | MIT License | vkbottle/vkbottle | v2.7 fix shuffle_tokens example |
718,838 | 14.04.2020 16:21:24 | -10,800 | cdd9515808c2bc39fc116b7d20fdff8cdcbe2a4e | v2.7 The strangest fix i ve ever made | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/const.py",
"new_path": "vkbottle/const.py",
"diff": "@@ -2,7 +2,7 @@ __version__ = \"2.7 Released 13.04.2020 14:00\" # Package VKBottle version\n__author__ = \"Arsenii Timoniq\"\n-API_VERSION = 5.103 # VK Api version\n+API_VERSION = \"5.103\" # VK Api... | Python | MIT License | vkbottle/vkbottle | v2.7 The strangest fix i ve ever made |
718,838 | 14.04.2020 18:26:31 | -10,800 | 6e19274ef71ea62d1adc6e7abf8929a75c326024 | v2.7 Fix of ok_response | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/types/methods/messages.py",
"new_path": "vkbottle/types/methods/messages.py",
"diff": "@@ -60,7 +60,9 @@ class MessagesCreateChat(BaseMethod):\naccess_token_type: APIAccessibility = [APIAccessibility.USER]\nasync def __call__(\n- self, user_ids: typin... | Python | MIT License | vkbottle/vkbottle | v2.7 Fix of ok_response |
718,838 | 15.04.2020 00:06:02 | -10,800 | 54844330073ec1df491e183c4d33d0b0f3f4d820 | v2.7 Update curious docs and add some candies to the API
+ fix LimitedTokenGenerator | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/api/api/api.py",
"new_path": "vkbottle/api/api/api.py",
"diff": "import typing\nfrom vkbottle.http import HTTPRequest\n-from vkbottle.utils import ContextInstanceMixin\n+from vkbottle.utils import ContextInstanceMixin, logger\nfrom vkbottle.types.meth... | Python | MIT License | vkbottle/vkbottle | v2.7 Update curious docs and add some candies to the API
+ fix LimitedTokenGenerator |
718,867 | 15.04.2020 02:47:45 | 18,000 | aff24542bee97f5597cd6044b76bbf839e0b025f | Added setters (fix | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/api/api/api.py",
"new_path": "vkbottle/api/api/api.py",
"diff": "@@ -96,6 +96,14 @@ class API(ContextInstanceMixin):\nself._group_id = current_user[0].id\nreturn self._group_id\n+ @group_id.setter\n+ def group_id(self, group_id: int):\n+ self._group_i... | Python | MIT License | vkbottle/vkbottle | Added setters (fix #72) |
718,838 | 15.04.2020 14:07:36 | -10,800 | 16dd876881cf18676c6815f8e2abd3063b190b6d | v2.7 Added new methods | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot/bot.py",
"new_path": "vkbottle/framework/bot/bot.py",
"diff": "@@ -54,10 +54,11 @@ class Bot(HTTP, AsyncHandleManager):\n\"\"\"\nInit bot\n:param tokens: bot tokens\n- :param group_id: [auto]\n+ :param group_id:\n:param debug: should bot... | Python | MIT License | vkbottle/vkbottle | v2.7 Added new methods |
718,838 | 15.04.2020 15:28:30 | -10,800 | 2a67bf632ae5bcd3466b0b61fafb6a68a338af07 | v2.7 Framework docs 1/3 | [
{
"change_type": "MODIFY",
"old_path": "examples/bot_decorators.py",
"new_path": "examples/bot_decorators.py",
"diff": "@@ -71,7 +71,7 @@ async def error_wrapper(error):\n@bot.on.chat_invite()\nasync def wrapper(ans: Message):\n- # Raising when bot is invited to chat\n+ # Is raised if bot is invited... | Python | MIT License | vkbottle/vkbottle | v2.7 Framework docs 1/3 |
718,838 | 15.04.2020 16:15:32 | -10,800 | 8707a98787f93d7af89e0859811c88c297b81bfe | v2.7 Edit failure logs | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/api/api/request.py",
"new_path": "vkbottle/api/api/request.py",
"diff": "@@ -26,9 +26,9 @@ async def request(\nwhile not isinstance(response, dict):\n# Works only on python 3.6+\ndelay = 1\n- logger.critical(\n+ logger.error(\n\"\\n---\"\n- f\"{time.l... | Python | MIT License | vkbottle/vkbottle | v2.7 Edit failure logs |
718,838 | 15.04.2020 18:25:26 | -10,800 | 10ffe0c411d0863a62c7355af7c24db25fd98701 | v2.7 Littile advantage | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot/bot.py",
"new_path": "vkbottle/framework/bot/bot.py",
"diff": "@@ -179,18 +179,21 @@ class Bot(HTTP, AsyncHandleManager):\nlogger.debug(\"Blueprints have been successfully loaded\")\n@staticmethod\n- def get_id_by_token(token: str):\n+ d... | Python | MIT License | vkbottle/vkbottle | v2.7 Littile advantage |
718,838 | 15.04.2020 22:18:56 | -10,800 | ddfd84bcb0a2d5fe7578ffcd6fcb5a5ce9571513 | v2.7 Pleasure | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/api/api/request.py",
"new_path": "vkbottle/api/api/request.py",
"diff": "@@ -76,7 +76,7 @@ class Request:\nelse self.throw_errors,\n)\n- logger.debug(f\"Response: {response}\")\n+ logger.debug(\"Response: {}\", response)\nif not response_model:\nretur... | Python | MIT License | vkbottle/vkbottle | v2.7 Pleasure |
718,867 | 16.04.2020 04:04:11 | 18,000 | 8857685eb3da8ed1b61ad027c882b20aea0ae724 | Added feature of debugging level selection and minor changes in User LP | [
{
"change_type": "MODIFY",
"old_path": "docs/todo - rewrite docs",
"new_path": "docs/todo - rewrite docs",
"diff": "-todo - rewrite docs\n\\ No newline at end of file\n+# TODO - Rewrite:\n+ 1) Rules docs\n+ 2) Validator docs\n+ 3) Complete Framework (User-bot) docs\n+ 4) Complete Uploader docs\n+\n"... | Python | MIT License | vkbottle/vkbottle | Added feature of debugging level selection and minor changes in User LP (#75) |
718,838 | 16.04.2020 13:01:09 | -10,800 | d9798e6bc5046a0ef85bb6f899060c487d22066d | adv change in repr | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/framework/handler/handler.py",
"new_path": "vkbottle/framework/framework/handler/handler.py",
"diff": "@@ -153,11 +153,11 @@ class Handler:\ndef __repr__(self):\nreturn (\n- f\"MESSAGE HANDLERS: {len(self.message.rules)}\\n\"\n- f\"CHAT-MESS... | Python | MIT License | vkbottle/vkbottle | adv change in repr |
718,838 | 17.04.2020 18:07:22 | -10,800 | 0d6e3d5581a10096a7610cbfbffaa1feea2fd5d0 | v2.7 Fix log | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/api/api/api.py",
"new_path": "vkbottle/api/api/api.py",
"diff": "@@ -22,7 +22,8 @@ class API(ContextInstanceMixin):\nself._group_id: typing.Optional[int] = None\nself._user_id: typing.Optional[int] = None\n- logger.debug(f\"API: using {len(tokens)} to... | Python | MIT License | vkbottle/vkbottle | v2.7 Fix log |
718,838 | 18.04.2020 20:02:30 | -10,800 | eb2a8f4eee87bc67ce0e1c6a37d9c47b7efaa406 | v2.7.1 to pypi | [
{
"change_type": "MODIFY",
"old_path": "setup.py",
"new_path": "setup.py",
"diff": "@@ -9,7 +9,7 @@ except:\nsetuptools.setup(\nname=\"vkbottle\",\n- version=\"2.7\",\n+ version=\"2.7.1\",\nauthor=\"timoniq\",\ndescription=\"Working with VK by this homogenetic way and it's awesome!\",\nlong_descript... | Python | MIT License | vkbottle/vkbottle | v2.7.1 to pypi |
718,867 | 18.04.2020 15:47:14 | 18,000 | 4ec1d2de6ead7cfb648c450e2ef9c876ddb7d80c | Loop setter | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/bot/bot.py",
"new_path": "vkbottle/framework/bot/bot.py",
"diff": "@@ -415,6 +415,10 @@ class Bot(HTTP, AsyncHandleManager):\ndef loop(self):\nreturn self.__loop\n+ @loop.setter\n+ def loop(self, loop: asyncio.AbstractEventLoop):\n+ self.__l... | Python | MIT License | vkbottle/vkbottle | Loop setter (#78) |
718,838 | 19.04.2020 16:55:00 | -10,800 | 371a2dc7bd0e281c94410cdf8ed68a4e9f0255ab | v2.7.1 Add middlewares as a blueprint inheritance | [
{
"change_type": "MODIFY",
"old_path": "vkbottle/framework/blueprint/bot.py",
"new_path": "vkbottle/framework/blueprint/bot.py",
"diff": "@@ -8,7 +8,6 @@ from vkbottle.framework.framework.handler import (\nMiddlewareExecutor,\n)\nfrom vkbottle.framework.framework.handler.handler import Handler\n-\nf... | Python | MIT License | vkbottle/vkbottle | v2.7.1 Add middlewares as a blueprint inheritance |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.