Git Product home page Git Product logo

glasnostbot's People

Contributors

visperi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

futurezone55

glasnostbot's Issues

Add a tool for updating config.toml

If the config files get new fields, it can be burdensome to migrate existing files to new structure. Add some kind of tool for merging existing configuration files with new ones without touching modified variables.

One way to achieve this is to make a custom class handling the configuration files. This could possibly also give nice ways for more granular configuration file handling.

Markdown fails on nested formatting

The markdown algorithm does not work correctly and starting position is incorrect in nested markdown text.

For example, this is supposed to be bolded and underlined text:

markdown_fail

Add support for all kinds of Telegram channels

Add native support for fetching and forwarding messages from regular channels. Currently this needs to be done manually by modifying method on_update in telegram_cog where only channel posts are parsed by default.

Possibly add boolean switches for accepting messages from different kind of channels in the configuration?

Add ratelimiting for Discord messages

Add rate limiting threshold and implementation for Discord messages to prevent rate limit errors. This can become a problem if the amoount of Discord channels grows big enough. The messages should then be rather delivered in batches.

Add support for messages longer than 2000 characters

Discord has character limit of 2000 characters for plain text messages, which is shorter than in Telegram (even more shorter if one has Telegram premium). Add support for longer messages by e.g. using embeds instead, or perhaps splitting the messages into multiple ones.

Hyperlinks dont work

Hyperlinks don't work and are sent instead as a bare text. Add a way to extract the link and text, and then format them in a suitable way.

Emojis messes up offsets in markdown

Title. Following example is simple one but works in the same principle for longer messages too:

emoji_messup

Maybe something to do with how the emojis are encoded while parsing through the messages in python, since they show correctly in both Telegram and Discord?

Edit: Confirmed to be an issue with Telegram calculating MessageEntity offsets using UTF-16 code units instead of Python default UTF-8 code points. The code point encoding must be taken into account when applying markdowns and offsets to messages received from Telegram API.

Add support for attachments in messages

Telegram messages can have attachments and so do Discord messages. Add support for different kind of attachments. At least following attachment types should be sufficient:

  • video
  • audio
  • images

Add also possibility of removal of attachments if possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.