nadia icon indicating copy to clipboard operation
nadia copied to clipboard

Support multiple bots

Open col opened this issue 9 years ago • 8 comments

The way the token configuration is handled at the moment means that this library can only be used for a single bot. I'd like to have multiple bots running within the same Erlang VM.

It would be nice if the token could be specified when making an API call. For example:

Nadia.send_message(chat_id, text, token: token)

col avatar Apr 16 '16 14:04 col

That sounds like a big refactor @col

Any feedback on this? @zhyu

Edit: Okay, I see there is a PR open for it already: #23

Just noting this here for anyone else looking at the issues.

Kentoseth avatar Jun 29 '16 14:06 Kentoseth

Is there any chance this will get merged yet? Has anyone come up with a workaround?

jnmandal avatar Jun 18 '17 16:06 jnmandal

Sorry for keeping you waiting 😿

I'll try to find a clean way to do this, and do some refactoring later

zhyu avatar Mar 05 '18 05:03 zhyu

what about using an umbrella project instead?

aus70 avatar Jun 06 '18 11:06 aus70

We need multiple bots!

zeuslocker avatar Oct 20 '18 11:10 zeuslocker

Is this enhancement being done?

zmcNotafraid avatar Dec 04 '18 09:12 zmcNotafraid

Hi there. I've created a fork project which enables support for multiple bots. You can even add dynamic bots at runtime. https://hex.pm/packages/alexia

Did a pull request with some of the functionalities and enhancements 2 weeks ago but nothing was accepted so I decided to focus on my own fork.

Take care!

Enotsoul avatar Apr 12 '19 08:04 Enotsoul

@Enotsoul could you please host your code for alexia on github too?

delta1 avatar May 27 '19 14:05 delta1