Commit Graph

388 Commits (1e7c0201d99a7d5d2e2c3ebac91c5ea97ed4da48)

Author SHA1 Message Date
hikariatama 1e7c0201d9 Heroku multiple accounts database, fixes 2022-05-30 20:58:20 +00:00
hikariatama e99caceb63 Database fixes for Heroku (should work hopefully) 2022-05-30 20:41:33 +00:00
hikariatama e67b98a999 Install postgresql, fix session import on heroku 2022-05-30 20:16:07 +00:00
hikariatama 867f2c542d Fix heroku session saving flow 2022-05-30 19:59:13 +00:00
hikariatama 3d9e2402c9 Do not store pending client in a 1-value list 2022-05-30 18:19:45 +00:00
hikariatama 45d18c1160 Allow app creation even if no telegram creds were specified 2022-05-30 18:05:09 +00:00
hikariatama c06db6310b Remove incompatible buildpack 2022-05-30 17:55:25 +00:00
hikariatama bd221fcb8d Mess around buildpacks 2022-05-30 17:34:19 +00:00
hikariatama bb96c7ca3b Do not ask user to enter Telegram credintials locally when installing to heroku 2022-05-30 17:25:03 +00:00
hikariatama 1288220c3f Rework session reading mechanism 2022-05-30 17:17:49 +00:00
hikariatama ed6d34cb82 Properly save Heroku session 2022-05-29 21:59:30 +00:00
hikariatama 925b1caedd Add GeekTG compat; Continue integrating Heroku 2022-05-28 08:12:36 +00:00
hikariatama 430868f5f7 Add Procfile 2022-05-28 07:47:32 +00:00
hikariatama 692402a8ea Add heroku-specific stuff 2022-05-28 07:39:24 +00:00
hikariatama 6cde31579f Testing Heroku deployment 2022-05-28 07:26:31 +00:00
hikariatama a837428cea Remove `HikkaDL` as redundant 2022-05-26 18:07:13 +00:00
hikariatama 71682ba8a1 Add `.mp4` to allowed animated media types of gallery 2022-05-26 17:07:27 +00:00
hikariatama 46fe403fae Replace huge mess of memory dicts with a single `_units` one, fix `TelegramID` validator 2022-05-26 16:59:39 +00:00
hikariatama 280a97cb2b Attempt to guess media file type in gallery (gif/image) 2022-05-26 16:31:20 +00:00
hikariatama 47d5cf9374 Small patch for validators 2022-05-26 09:43:16 +00:00
hikariatama 89b3295454 Patch, fixing HikkaConfig
- Allow adding and removing multiple items in config
- Add `ast.literal_eval` to config
- Add explicit typecheck for `mod.config`
2022-05-26 08:54:50 +00:00
hikariatama 3fc77b5529 1.1.28
- Fix non-working param `share_link` in loader
- Assure logging bot is a member of logchat
- Do not store partial phone number in session, only ID
- Rework fast uploader so more types can be passed. For more information check code docstrings and typehints
- Rework installer so it properly displays which action is currently happening
- Fix `Series` not accepting one item
- Show upcoming commit in update and warn if update is not required
- Add reset to default button to config
- Merge `hikka_logger.py` with `test.py`
- Localization
- Allow opening options of specific mod via arguments in `.config`
- Add `add` and `remove` buttons to `Series` params
- Do not unload form immediately, if `ttl` param was passed explicitly
2022-05-25 16:32:39 +00:00
hikariatama 673f4eb39c Minor fix of config processor
Added `.strip()` to process each item of `Series`
2022-05-21 19:13:50 +00:00
hikariatama a0aacf459e Hotfix for broken `hikka_info.py`
Bug occured of you tried to open config after loading module from file
2022-05-21 18:49:25 +00:00
hikariatama ec647fe34e 1.1.27
- Reorder the steps of parsing in `loader.validators.Series`
- Fix aliases (yet another time)
- Fix minor bug in `loader.validators.Series`, which allowed to put empty string in it
- Fix some translation issues and type conversion ones
- Fix incorrect modules loading if multiple links end with specified name
- Fix type conversion bug in `loader.validators.String`
- Fix typehints flaws
- Add additional fields to `inline.form`: `gif`, `file`, `mime\_type`, `video`, `location`, `audio`
- Add reset-to-default action, if config is invalid while loading the userbot to prevent fall
- Add verification emoji to `input` to let user know, that new value was processed
- Add badge showing how much the last restart took
- Add `min_len`, `max_len`, `fixed_len` params to `loader.validators.Series`
- Add option to show downloaded module link in result message of `.dlmod`
- Add explicit database save after applying new config
- Add hint to web
- Add code of conduct
- Add changelog
- Remove redundant code in `database.py` as it literally does nothing
2022-05-21 18:34:45 +00:00
hikariatama 34bbb44a3a 1.1.26
- Hopefully finally fix aliases being reset after restart
- Remove redundant internal hook `_client_ready2`
- Show user evaluated version of config value instead of pre-comp one
- Add validator for each item to `Series`, remove `separator`
- Add new validator: `TelegramID`
2022-05-20 19:02:27 +00:00
hikariatama eae0c413f0 1.1.25
- Add separate messages on `restart` and `full_restart`. Second one is shown, when all modules are loaded
- Replace `.uninstall_hikka` with full uninstallation (remove bot, asset chats and folder)
- Clean code
- Suggest update if it is required by module
- New validator: `Float`
- Buttons in `.config` of option is a boolean value
- Drop support of argument `positive` in `loader.validators.Integer` as it can be easily replaced with `minimum=0`
- Update semantic generator in validators
- Yet another protection from monkey-patching
2022-05-20 13:42:39 +00:00
hikariatama 3453fb9886 Hotfix for those who issued userbot fall with incorrect config set 2022-05-19 20:40:14 +00:00
hikariatama 059d531d39 1.1.24
- Add `String` and `Link` validators
- Fix `Series` validator
- Reformat core modules to use validators
2022-05-19 19:26:03 +00:00
hikariatama 64163b7218 Add Orange Pi as platform to `utils.get_named_platform` 2022-05-19 19:02:13 +00:00
hikariatama 6caa7a0e4e 1.1.23
- Add config validators (`loader.validators`, `Boolean`, `Integer`, `Choice`, `Series`)
- Change info layout
- Add `.uninstall_hikka`
- Add `.clearlogs`
- Refactor code
- Fix minor bugs
- Fix aliases being reset after restart (aliases will now be available only when userbot is fully loaded)
2022-05-19 18:55:37 +00:00
hikariatama 90b5ab0b4d Minor updates
- Update dockerfiles
- Update readme
- Suppress some logging shit
- Hopefully fix dl buttons
- New banner in info
2022-05-18 18:37:43 +00:00
hikariatama 96afa2fb33 Minor fixes
- Add additional config options to `HikkaInfo`
- Delete all update messages in update notifier
2022-05-16 15:41:15 +00:00
hikariatama 8f5e879dc4 Minor bugfixes
- Make uvloop optional
- Fix `utils.escape_html`
- Add nickname check when creating bot (less than 64)
- Add banner in `.info`
2022-05-16 05:37:58 +00:00
Dan Gazizullin 0337c97a1f
Merge pull request #20 from hikariatama/okteto_test
Hikka 1.1.22
2022-05-15 21:33:00 +03:00
Dan Gazizullin aa07f4850a
Merge pull request #22 from hikariatama/sourcery/okteto_test
Hikka 1.1.22 (Sourcery refactored)
2022-05-14 23:52:24 +03:00
Sourcery AI 9a0a5a5543 'Refactored by Sourcery' 2022-05-14 20:44:57 +00:00
hikariatama a6d01c6cdb 1.1.22
- Fix bugs related to web, more specifically: Session save timing, adding more than 1 account and proper restart
- Rework Dockerfiles so they work properly
- Add `uvloop` so the asyncio runs faster
- Add `Docker` badge to info
- Improve Okteto performance by adjusting settings in `okteto-stack.yml`
- New ascii_faces in utils
- Typehints update
- Fix Okteto pinger messages removal
2022-05-14 17:46:52 +00:00
hikariatama 5aad62610c Update Dockerfiles, prepare core modules to work with Docker properly 2022-05-13 16:09:21 +00:00
hikariatama 63875b95ba Increase CPU\RAM\Storage limits, rename okteto stuff 2022-05-13 13:49:13 +00:00
hikariatama c3f7c1e1f4 Silence git error on boot 2022-05-13 13:37:26 +00:00
hikariatama 28cb5eaadf Add separate files for docker and okteto to separate them,
remove optional requirements including ffmpeg for docker deployment
2022-05-13 13:31:05 +00:00
hikariatama 3ed1980595 Add native hashability check instead of typecheck one 2022-05-12 19:03:34 +00:00
hikariatama 9cd320e91e 1.1.21
- Fix translation typos
- Add nonick suggestion when adding user to group
- Add entity caching
2022-05-12 18:42:53 +00:00
hikariatama cee6783191 Patch, fixing legacy fs modules migration 2022-05-12 15:37:05 +00:00
hikariatama 0a17cefbab Patch for users with non-translatable prefix (e.g. "+", "-" etc) 2022-05-12 12:39:08 +00:00
hikariatama 9664d0e4f7 Patch for removing common error with logging 2022-05-12 12:19:34 +00:00
hikariatama e713035099 1.1.20
- Add legacy fs modules migration
- Add `ready` asyncio Event to help track userbot loading process from outside
- Replace logging in loader with module-dependent one
- Fix some bugs and bug-rist issues
- Refactor code
- Send big logs as file, rather than an infinite series of messages
- HTML-escape `# meta developer:`
- Make `self.animate` available for core modules and modules, loaded from file
2022-05-11 17:46:36 +00:00
hikariatama 0893947d2c 1.1.19
- Fix infinite loops
- Add client-specific check of fs modules
- Use classname of module, if it is possible to parse it with ast
- Rework infinite loops stopping and modules instance placement
2022-05-11 11:28:10 +00:00
hikariatama 4340e363c7 Fix typo 2022-05-09 20:10:49 +00:00