Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

threading support? #6

Open
icy opened this issue Jul 10, 2015 · 2 comments
Open

threading support? #6

icy opened this issue Jul 10, 2015 · 2 comments

Comments

@icy
Copy link
Contributor

icy commented Jul 10, 2015

Can you please support a way to process multiple bot commands at the same time?

Thanks.

@eljojo
Copy link
Owner

eljojo commented Sep 14, 2015

This is definitely in my list of things to support.
I've been wondering about what's the best solution about it.

I like a lot the "actor" pattern that celluloid brings, maybe i'll play with that.
What's your current usecase?

I am open for discussion about this.

@icy
Copy link
Contributor Author

icy commented Sep 16, 2015

I like a lot the "actor" pattern that celluloid brings, maybe i'll play with that.

You may take a look at Cinch (https://github.com/cinchrb/cinch) which is Ruby framework to write IRC bots. That's very robust and easy; and I used to have my IRC bots written in Cinch, e.g, https://github.com/archlinuxvn/irclog/tree/master/bot.

What's your current usecase?

My bot often processes many commands at the same time, e.g, it executes system command uptime, grep,... and returns the output to user. It's important to stop other users from waiting these commands.

Thanks a lot!

UPDATE: Fix typo errors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants