Add a message queue to prevent flooding

Most bots have to implement their own queue, so I added one to the library.