hikariatama / Hikka

The most fresh and updateable developer-oriented Telegram userbot
https://hikka.pw
GNU Affero General Public License v3.0
315 stars 506 forks source link

Add a header to mark whether the module will loaded by Hikka or not #96

Closed iamnalinor closed 1 year ago

iamnalinor commented 1 year ago

Additional context Also you may add a setting with which user can control whether do they really want to get another version of modules or not.

hikariatama commented 1 year ago

Serving different versions of code based on custom header makes code review impossible. If you want to provide Hikka-only functionality, use hasattr(self, "hikka") expression to check, whether the module is being loaded by Hikka or anything else