hikariatama / Hikka

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

Hikka Suggestions #37

Closed anon97945 closed 1 year ago

anon97945 commented 2 years ago
hikariatama commented 2 years ago
anon97945 commented 2 years ago
anon97945 commented 2 years ago
hikariatama commented 2 years ago
  • [x] Ability to install system requirements via module

.terminal pip3 install -y

anon97945 commented 2 years ago
anon97945 commented 2 years ago
anon97945 commented 2 years ago
hikariatama commented 2 years ago
  • .ch_hikka_bot | should also have some "default" option, to random botname again.

I can't see any usecase of this feature

hikariatama commented 2 years ago
  • do not remove modules from loader db if they can't be loaded. An broken update removed all of my modules after restart. Annoying for multiple accounts to reload them

This is not possible, bc modules in db are updates with ones from self.allmodules.modules, where there are no "not-loaded" modules

hikariatama commented 2 years ago
  • Add lang validator

Lang formats are different. Use loader.validators.String or loader.validators.RegExp for more complex langs

anon97945 commented 2 years ago
anon97945 commented 2 years ago
anon97945 commented 2 years ago
anon97945 commented 2 years ago
hikariatama commented 2 years ago
hikariatama commented 2 years ago
  • [x] add cache for await message.client(GetFullChannelRequest(channel=<id>))

I don't wanna make cacher for raw api methods, bc sometimes you need to forcefully get a non-cached (actual) result, which with cached raw methods will be impossible. But

anon97945 commented 2 years ago
hikariatama commented 2 years ago
  • .langforce <langcode> <id> | Add support for forced languages of modules in given chats. Example: German communitys and English communitys. Let Hikka load all strings of the module on start and then check if the chatid, which triggers an command, has a forced language. If yes, use it, else use default userbot lanaguage. Same goes for if string isn't found in that language. Idea behind: not all of my german community is speaking english, nor is the english community speaking german. So i need to host 2 Userbots with the same module just for translation......

There will be a multiple languages with priority soon, so it's not neccessary to create .langforce

hikariatama commented 2 years ago
  • utils.answer | utils.answer native string support of <br> (replace it with \n) right in utils.answer or so.

Why would anyone need it? =/

anon97945 commented 2 years ago

add multiple strings via config -> series(strings) and put them together as one big. since inline doesnt support unlimited message length.

anon97945 commented 2 years ago