Parse our company birthday list and send out slack message for today's birthdays.
Create a config file using /resources/config.edn.sample
as a...well...sample.
By default birthday-bot will look for load from /resources/config.edn
, which is useful if using lein run
or if it has been compiled with your configuration included, but otherwise you should use -c FILE
to specify your configuration.
$ java -jar birthday-bot-0.1.0-standalone.jar -c /path/to/config.edn
We maintain our birthday list with a page in confluence. The table has a layout of:
<p><strong>JANUARY</strong></p>
<div>
<table class="confluenceTable">
<tbody>
<tr>
<td colspan="1" class="confluenceTd">Single Person</td>
<td colspan="1" class="confluenceTd">Jan-4</td>
</tr>
<tr>
<td class="confluenceTd">
<p>Person 1 &</p>
<p>Person 2 &</p>
<p>Person 3</p>
</td>
<td class="confluenceTd">Jan-5</td>
</tr>
</tbody>
</table>
</div>
-c, --config FILE Config File
-v Logging Verbosity level
-h, --help
Logs to console and to ./.birthday-bot.log
. The log file will rotate with size. Default logging is WARN
. You can turn up the logging with the verbosity flag (-v
). For example:
$ java -jar birthday-bot-0.1.0-standalone.jar -v
will log at INFO
and
$ java -jar birthday-bot-0.1.0-standalone.jar -v
will log at DEBUG
.