ryan-rowland / albion-guildbot

A Bot that posts interesting events about a guild to Discord.
GNU General Public License v3.0
20 stars 28 forks source link

Implement TS module for formatting/posting discord messages #1

Open ryan-rowland opened 7 years ago

ryan-rowland commented 7 years ago

Currently, this is done sloppily in index.js. These should live in their own class that understands different types of posts, and their formats. This module should also implement a queuing system to avoid hitting the Discord rate limit.

2

ryan-rowland commented 7 years ago

Seems like discord.js should handle the queuing for us. This issue can be reduced to creating a class that takes data objects (Battle, Kill, etc) and returns a Discord.js RichEmbed object to pass to .send