elixir-telegram-bot-boilerplate icon indicating copy to clipboard operation
elixir-telegram-bot-boilerplate copied to clipboard

Publish as hex package

Open sascha-wolf opened this issue 6 years ago • 5 comments

I think this project would benefit from being published as a hex package.

IMO the current structure is not fully suited for publishing just yet. For example the global nature of the poller and matcher would make defining multiple bots impossible. As a solution it might make sense to consider an approach similar to an Ecto.Repo where configuration lives for a certain repo which then gets supervised and takes care of it's processes.

What do you think? I'm maintaining two small libs already so I would be happy to assist.

sascha-wolf avatar May 14 '19 13:05 sascha-wolf

I've actually started tinkering an pkg version of this app with some improvements over lessons learnt tho I don't think I can focus on this right now as I'm concurrently distributing time between some projects already.

But I can come back to this issue next month for sure.

lubien avatar May 14 '19 21:05 lubien

If you do I think you should reconsider the send_message approach of spawning a task for each one.

Instead some kind of worker pool, for example using gen_stage, might be preferable.

HTTP connections are limited after all.

sascha-wolf avatar May 20 '19 21:05 sascha-wolf

Hacktoberfest project, @lubien? :grinning:

v0idpwn avatar Sep 25 '19 17:09 v0idpwn

Hey that's a pretty good project. Wanna go for it?

lubien avatar Sep 25 '19 17:09 lubien

I'll do the best I can, but I'm no expert. :)

v0idpwn avatar Sep 26 '19 22:09 v0idpwn