-
Notifications
You must be signed in to change notification settings - Fork 60
Roadmap
Of course, one of the main (if not THE main) priority is clearing up the issue list. Some of these will appear in this list as well. I've classified issues into two: Outwards, referring to how the bot handles human interaction, and Innards, how the bot handles data internally. They're not listed in any particular order - just as they came to me. Like old drunken hobos. They call me Alice. Who the fuck is Alice?
-
Make the bot's responses more human-like and diverse. "Successfully added command foo" is too 1960s robot. We're making a human interface - "Ok, added command foo" is something you can tell your co-worker. Also, make jokes.
-
Add message editing. This is a pretty big change internally, it'll be discussed in more detail later on in the list.
-
Handle bot-spam. Most of it is handled in point #2, but make it harder to spam the room via the bot - add flood control.
-
Currently, the input event system is weird. We get raw input from
bot.adapter
, which is then delivered toIO
, then to thebot
. Commands/listeners get the abstraction ofbot.Message
, but if you register to IO'sinput
event, you'll get the raw data. That may be fine by itself, however, we have no way of implicitly getting the abstraction without being a command/listener. -
...and the output system is text-based, which is wrong. Commands and listeners return strings,
bot.adapter.out
operates on just a room and text. We lose a lot of data in here - notably which message we responded to. Besides, if we want to pipe one input through several commands, we have to do weird dances and rituals. -
The commands have mixed logic and display. A command's main function has both data handling and output handling in one. Coupled with #2, this means that one command wanting to use another has to jump through extra loops. This sucks. A better system would be composing commands out of two parts: One which handles data (getting it from an external resource, whatever), and one which takes that data, and formats the output. We can then make a wrapper function, the actual command the bot calls, which pipes the output of the former to the latter.
-
bot
is a bit of a god object. It's mitigated by some sub-organising (bot.memory
,bot.adapter
, etc), but it has over 30 properties and methods. It might not be a real issue, but it should be looked into. Or not. Either way, pancakes. Lots and lots of pancakes. -
Of course, cleaning and refactoring bits and pieces of the bot is always good, conforming to the style guide whatever you do, fixing places where it doesn't (whoopsies).
-
node. Moving the bot to a server, away from the browser. This'll be huge, and should probably be done in steps (only make the logic first, have the chat interaction be in the browser, establish socket communication between the two) until we're comfortable.