Commit Graph

647 Commits (07589ff9f29c1875ad7882dbe582ed5ab02fe60b)

Author SHA1 Message Date
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
hikariatama dc7434e036 Patch
- New installation banner
- Add automatic blob->raw convertion in loader
2022-06-05 12:58:08 +00:00
hikariatama 993b005adf Patch for Heroku
- Add banner with Hikka installation status
- Reorder config saving in web
- Fix `Unauthorized` error
2022-06-03 20:09:00 +00:00
hikariatama c410f97089 1.2.3
- Add field `action` to inline buttons. You can pass there `close` to close inline form, `unload` to unload it from memory, `answer` & `text` | `show_alert` to answer callback query with message
- Update docstrings in inline to match unified format
- Add surrogate error ignorance in dispatcher
- Fix :obj:`EntityCache` caching username `@None`
- Return :obj:`InlineMessage` in `hikka.inline.gallery.Gallery.gallery`
- Fix typo in docstring
2022-06-03 12:11:49 +00:00
hikariatama a37263a5d8 Addition to latest commit 2022-06-02 22:31:07 +00:00
hikariatama d5dedf7f4c Patch
- Fix inline list close button
- Fix `disable_notifications` param in `update_notifier.py`
- Minor core code naming
2022-06-02 22:29:44 +00:00
hikariatama 0138fe15db Fix typo 2022-06-02 16:22:38 +00:00
hikariatama 07c3cb15e6 1.2.2
- Update gitignore so git doesn't count shit on heroku
- Visual heroku fixes in updater
- Deepsource fixes
- Add `utils.get_entity_url`, `utils.get_message_link`, `utils.remove_html`, `utils.get_kwargs`
- Disable modules debugging on heroku
- Add `.nonickusers`, `.nonickcmds`, `.nonickchats`
- Update blacklist command docs
- Fix grep removing everything in <...>
- Add `loader.validators.RegExp`
- Automatically convert `None` to empty string \ zero integer etc., if validator is specified
- More meaningful errors in `inline_handler`s
- More meaningful errors in `self.inline.form`, `self.inline.gallery`, `self.inline.list` on user-side
- Allow editing\adding media to form via `call.edit`. Currently supported: `photo`, `file`, `video`, `audio`, `gif`
2022-06-02 16:15:08 +00:00
hikariatama 30e26fe117 Add ts to logs, refactor logging unit 2022-06-01 23:45:45 +00:00
hikariatama 428834990f I fucked up with method name 2022-06-01 22:38:27 +00:00
hikariatama 5ebc50c82b Fix heroku typos 2022-06-01 22:36:57 +00:00
hikariatama f622bf93c8 Add heroku specific update 2022-06-01 22:27:40 +00:00
hikariatama 071f88db5e 1.2.1
- Add termux specific requirements
- Ignore `heroku3` import error on non-heroku platforms
- Refactor `heroku.py` app searching algorithm
- Refactor postgresql database saving process
- Fix heroku restart message not being edited
- Add heroku waker
- Make `hikka-` app naming optional
2022-06-01 22:14:55 +00:00