modubot / modubot.js

Modubot: the scalable and extensible IRC bot.
https://modubot.net
BSD 3-Clause "New" or "Revised" License
19 stars 3 forks source link

Optimize factoid input #64

Open ghost opened 8 years ago

ghost commented 8 years ago

Factoids should follow a standard way of parsing input rather than the multiple methods it uses now. I was thinking something like:

?cmd input1 | input2 | input3 | ...

The factoid parser would then pull the inputs into an array. If there is an %input% in the factoid, it will replace each one accordingly. Any extra inputs would then be prepended to the front of the factoid. For example:

?cmd kamal_ | reynir | mocx

Modubot: mocx: Ask kamal_ how to write factoid commands or checkout reynir's cool documentation here: http://reynirdoxxing.gov