Commit Graph

509 Commits (a57f15307bb4b8b4aceccaf7c5609ab19ba35603)

Author SHA1 Message Date
Sourcery AI c7bea2a5e0 'Refactored by Sourcery' 2022-07-19 20:29:32 +00:00
hikariatama 9d88819cb5 Deepsource fixes 2022-07-19 20:22:43 +00:00
hikariatama 8b632fdbd2 Part of v1.2.11 update 2022-07-19 16:37:12 +00:00
hikariatama 1f6c44e903 Part of v1.2.11 update
Check changelogs for more info
2022-07-16 21:56:43 +00:00
hikariatama 08443aa775 Part of v1.2.11 update
Check changelogs for more info
2022-07-16 21:55:45 +00:00
hikariatama 6637977f0c Part of v1.2.11 update
- Remove Database and TelegramClient from local variables in stack
- Remove redundant parameters in `send_ready_one` and similar
2022-07-16 10:24:15 +00:00
hikariatama 63c6d354ce Part of v1.2.11 update
See changelogs for more info
2022-07-16 09:59:19 +00:00
hikariatama 9ddfef305f Part of v1.2.11 update
See changelogs for more info
2022-07-15 22:04:09 +00:00
hikariatama 308eb29b4e Update changelog 2022-07-14 21:38:10 +00:00
hikariatama 7fdcca8d8a Add `get_prefix` to library instance 2022-07-14 21:35:35 +00:00
hikariatama e995391bf0 Add references replacement with garbage collector
Old method doesn't work at all btw
2022-07-14 20:28:29 +00:00
hikariatama 071b1c1d01 Fix typo 2022-07-14 20:01:58 +00:00
hikariatama 8e3647b45b 1.2.11
- Add support for lib attribute `version` (must be defined BEFORE `init` method)
- Add `self.lookup` to libs
- Add `self.allmodules` to libs
- Add `self.lib_get` to libs
- Add `self.lib_set` to libs
- Add support for hook `on_lib_update` (invoked when library is being updated by new version)
2022-07-14 19:40:38 +00:00
Dan Gazizullin 4193c84773
Merge pull request #45 from hikariatama/v1.2.10
v1.2.10
2022-07-13 23:32:39 +03:00
Dan Gazizullin 866f0a94e5
Merge pull request #46 from hikariatama/sourcery/v1.2.10
v1.2.10 (Sourcery refactored)
2022-07-13 23:31:25 +03:00
Sourcery AI 90163f8cfc 'Refactored by Sourcery' 2022-07-13 20:29:27 +00:00
hikariatama 5dd942992e Fix multiple spaces in `.help -f` for modules without commands 2022-07-13 20:26:10 +00:00
hikariatama 3b18c068fb Show actual module name in <core>, <file> and <string> origins 2022-07-13 20:16:35 +00:00
hikariatama 633845f8d6 Add key-specific config and dictionary migration 2022-07-13 19:54:45 +00:00
hikariatama 5fe75d3af7 Rename duplicate variable which caused error on migration 2022-07-13 19:43:41 +00:00
hikariatama 7994b82566 Forcefully override new db values with legacy ones 2022-07-13 18:51:03 +00:00
hikariatama 1af82d85b2 1.2.10
- Completely drop fast_uploader support
- Add :method:`utils.import_lib`
- Add protection for :obj:`CheckChatInviteRequest` in forbid_joins
- Add ability to search modules by classname in :method:`self.lookup`
- Add anonymous stats of modules loading (YOU CAN DISABLE THEM IN `.settings`)
- Add telethon objects formatting in `.e`
- Add :obj:`loader.SelfSuspend` to disable module commands and watcher loading, e.g. if library is unavailable
- Add migration native modules db storage from `strings["name"]` to classname. ⚠️ Might break some stuff in the beginning in rare cases
- Fix heroku-specific config error
2022-07-13 18:39:19 +00:00
hikariatama 66426025e0 Patch with minor fixes
- Refactorment
- Deepsource suggestions
- License update
2022-07-07 20:24:20 +00:00
hikariatama 5c4fba228a Patch for Updater 2022-07-06 19:25:50 +00:00
hikariatama 32bcd634a4 Fix typo, which caused db problems on Heroku 2022-07-03 18:41:14 +00:00
hikariatama 402ed878c6 1.2.9
Small fixing, which allows developer to specify audio metadata in form and `_edit_unit`
2022-07-03 14:41:58 +00:00
hikariatama f40a4eba09 1.2.8
- Add automatic webpage bot unblock in heroku waker
- Add secure boot feature
- Update native heroku postgre database saving method
- Add easter egg to `.ping`
- Add platform-specific errors while installing requirements
- Change postgresql column `id` datatype from int32 to int64 + legacy migration
- Change proxypass tunnel behavior - now it only opens on setup and via command `.weburl`
- Lavhost-specific web url
- Meaningful errors in web
- ⚠️ Drop `fast_uploader` support. It will be completely removed in next major update
- Deepsource fixes
- Multiple languages with priority
2022-07-02 22:04:27 +00:00
hikariatama 12ae1ec44d Patch
- Temporarily disable `fast_download` and `fast_upload` (no need to remove them from code, they are available as-is, but use legacy transfer
- Fix gallery loop
2022-06-19 19:19:38 +00:00
hikariatama 91db334a89 1.2.7
- Add automatic proxy pass
- Fix --no-web argument parsing
- Fix localization error in updater
- Print out only INFO statements to stdout
- Add rotating file handler (logfile with max 10MB size)
- Show web endpoint on startup if available
- Fix gallery `inline_message_id` error
- Add support for `custom_buttons` in `inline.list`
- Add support for `custom_buttons` in `inline.gallery`
- Smart fast_uploader (Do not use hard download on files smaller than 1 MB)
- Attempt to parse `unit_id` from passed `InlineCall` object in `inline._delete_unit_message`
- Reformatting
- Change typehints
- Show list-like values in formatted way in config
- Properly escape html in config
- Split config to pages and categories (core \ non-core)
- Properly edit dictionary config (iter)
- Properly remove items from series options through built-in configurator
- Remove warning from web by replacing coroutine generation with `functools.partial`
2022-06-17 22:22:30 +00:00
hikariatama db09fa3aca Fix protection 2022-06-12 19:24:12 +00:00
hikariatama 879aefa1ed 1.2.6
- Fix processing of `# scope: hikka_min`
- Add `forbid_joins.py` (to use it, download module from official repo with the same name)
2022-06-12 18:45:02 +00:00
hikariatama 6f7fde5e6a Temporarily remove ttl check in inline units to fix config 2022-06-12 17:30:37 +00:00
hikariatama fd749d3189 Minor fixes 2022-06-12 17:14:22 +00:00
hikariatama 212a1a3f59 Suppress any exceptions on web stop 2022-06-12 15:25:10 +00:00
hikariatama 7e5b9ad58d Patch
- Fix non-working inline in `.logs`
- Fix unit deletion via "action" attr
- Fix module load error, if invalid entity was specified in #meta developer
- Hopefully fix config
- Remove notification about setattr error in dispatcher
2022-06-12 15:23:48 +00:00
hikariatama 19ebbe85a0 Fix false hidden config 2022-06-12 10:25:55 +00:00
hikariatama 966ea0979a Fix inline, migrate to new close handlers 2022-06-12 10:20:45 +00:00
hikariatama 8018cc8a35 Fix missed dependency 2022-06-12 09:50:59 +00:00
hikariatama e382cbc7a5 1.2.5
- Add additional exit on restart to avoid port block
- Add unloaded module name on `.unloadmod`
- Add `banner_url` config var to `HikkaInfo`
- Add `loader.validators.Hidden`
- Add `websockets` dependency, so users can load hikarichat on Heroku
- Add `reply_markup` kwarg to `utils.answer`. This will automatically add buttons to plain message or edit buttons of inline unit
- Add suggestion to join developer's channel on module load if available
- Add `client.force_get_entity` to bypass Hikka Cacher
- Add clickable link to loaded module message if specified meta developer is channel
- Add support of `action` attributes for buttons ("action": "close", "action": "unload", "action": "answer")
- Add log splitter between different clients of instance (if possible)
- Fix inline events `IndexError`
- Fix text in inline input
- Fix translation issue in HikkaConfig
- Fix `.dump`
- Fix modules list reset if you perform `.dlmod` when userbot is not yet fully loaded
- Update links in README
- Remove nalinor from official repos until new modules appear
2022-06-12 09:46:48 +00:00
hikariatama 491a3b3f37 [minor] Replace imgur link with github 2022-06-09 22:08:27 +00:00
hikariatama 07970bbcdf Patch for loader 2022-06-07 16:51:52 +00:00
hikariatama 7b2dc1c572 Update Changelogs 2022-06-06 16:56:53 +00:00
hikariatama ac8e7371e9 1.2.4
- Show current options in module config
- Add new validators: `loader.validators.Union`, `loader.validators.NoneType`
2022-06-06 16:54:31 +00:00
hikariatama 3725d6ed25 Patch
- Add additional Heroku deps
- Fix `load_module` reattempt
2022-06-05 17:24:18 +00:00
hikariatama 7fb206aaa0 Reorder database read-writes to make postgres the ladder 2022-06-05 16:54:38 +00:00
hikariatama 1374ddb09a Make `redis` optional for non-heroku users 2022-06-05 16:44:53 +00:00
hikariatama 4c72f638cb Add source to Pipfile 2022-06-05 16:33:03 +00:00
hikariatama 534fb32c2a Heroku Patch
- New Heroku dependencies list in Pipfile
- External Redis database support
- Mask more options in logs and .e output
- Remove psycopg2 from requirements.txt
2022-06-05 16:30:16 +00:00
hikariatama 30542381a8 Revert "[DO NOT INSTALL] - Testing Heroku-redis migration"
This reverts commit 18a0dac15d.
2022-06-05 13:34:14 +00:00
hikariatama 18a0dac15d [DO NOT INSTALL] - Testing Heroku-redis migration 2022-06-05 13:17:12 +00:00