Skip to content

0.9.x - Beta 7 is here!!!

Pre-release
Pre-release
Compare
Choose a tag to compare
@halkliff halkliff released this 14 Jan 21:21

Beta 7

Finally!!! Ema is almost at it's version 1.x! Here are the changes:

Complete change in the Query API:

Embraced most of PEP-8

  • Rework in the entire API
    • For the sake of consistency, the API has a better error handling.
  • The server is no longer yande.re, now is gelbooru.com
  • Deleted acc_setup.py, as it is no longer needed
  • Function for normal search ( specially for the normal media commands in the bot)
  • Function for inline search
    • This function is iterable, so it can change it's results depending on the given parameters
    • It also returns a json object with up to 50 objects inside it

Much more languages supported!

  • Now Ema can talk not only in English, but in Portuguese, Italian, Deutsche, Spanish and Russian!
  • A bunch of new strings added, to handle the new bot needs

New bot functions and additions:

Embraced most of PEP-8, and added a lot of comments

  • Now the bot will not leave the users in an eternal vaccuum if the user send any unsupported command or text
  • New command: /about - returns to the user a little text with all the needed info
  • Added new handlers for the full support to change the language
  • Added new handles for the full support to change the notifications
    • The notifications are broadcast messages, and the user can choose whether he wants to receive it

      The broadcast doesn't work yet.
  • Added a new button in the media commands' answer: Share
    • The share button makes the user able to share the picture in any chat, even if it is a chat where the bot is not
    • So it brings a higher use possibilities
  • Users can now search with the command /id {id}, where the {id} is any number from 1 up to 3226788
  • The media commands' responsiveness was improved thanks to a little tweak in the code

Inline mode:

  • Users can search any combination of tags, and the query is returned with matching results
    • If, for any reason, the bot couldn't find anything with the query, it returns an error answer
    • This error answer, if clicked, inputs a little text, saying why it couldn't match any result
  • When results are successful, the bot returns a list with all matching results
    • This list includes Pictures (.png, .jpg, .jpeg) and GIFs (.gif)
  • As the user selects it's desired picture / gif, the bot inserts it on the chat
    • The input contains not only the file, but also it's unique identifier in the server
  • The input content also has two buttons, download and search more
    • The download button pops up a page where the user can download the file
    • The search more button uses the 'switch_inline_query_current_chat', so if the user wants to search more that tag, he won't need to type again @bot_name [tags]
  • When the input content is actually from the Share button, it uses the first three tags to search, just like the search more button (And I must say this was hard to do)

And that's pretty much it! The possible next 0.9.x releases will be just bug fixes, until the final version 1.x is finally ready!!!