zorael / kameloso

IRC bot with Twitch support
Boost Software License 1.0
8 stars 3 forks source link

Add functions to send messages to the server #34

Closed zorael closed 6 years ago

zorael commented 6 years ago

This formalises ways for plugins to send messages to the server.

With the functions in messaging.d, you can now send channel messages with void chan(string channel, string content), private query messages with void query(string nickname, string content), etc.

They're still sent synchronously from the main thread; this just makes it so that you don't have to do the manual "PRIVMSG %s :%s".format(...) dance.