8000 Make command registration goroutine safe · Issue #77 · go-chat-bot/bot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.
This repository was archived by the owner on Mar 11, 2024. It is now read-only.
Make command registration goroutine safe #77
Open
@toolateforteddy

Description

@toolateforteddy

We should add a mutex around all places that register commands. By doing so, it would be much easer to register functions dynamically.

For example:
!send-periodically "I like cats" "0 0 0 * * *"
Would then send, in the current channel, "I like cats" at midnight every day.

I am sure more interesting things will be considered by allowing dynamic registration of commands, and making the registration threadsafe is just the first step to enable that excellence.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0