About Abbot
Abbot is a programmable bot that turns your team chat into a shared command center. We handle all the boilerplate of building and running these conmmands so that you can focus on making tools that help you ship faster.
We built Abbot because we saw the power of this style of work (called ChatOps), when we worked at GitHub. ChatOps made it possible for GitHub to work productively without meetings, while globally distributed. We think it’s a pretty great way to work, so we made it easy to use in Slack, Discord, and Microsoft Teams.
You can read more about Abbot here, check out our blog, or take a look at some of the other cool packages available as a one-click install from Abbot’s Package Directory.
README
A simple bot that is intended to post all of my daily comics. Currently it only posts XKCD (since it’s the only comic that I read regularly that works well with a simple static URL).
Usage
This package has no usage examples
Code
// var gwsTracker = new Tuple<DateTime, int>(DateTime.Today, 1556);
// await Bot.Brain.WriteAsync(“gws”, gwsTracker);
var gws = await Bot.Brain.GetAsAsync<Tuple<DateTime, int>>(“gws”);
// https://leasticoulddo.com/wp-content/uploads/2021/02/licd5620-feb22_21_desktop-scaled.jpg
await Bot.ReplyAsync(“https://xkcd.com/”);
await Bot.ReplyLaterAsync($”https://www.girlswithslingshots.com/comic/gws-chaser-{gws.Item2}”, 2);
// Only XKCD displays nicely in slack when just getting a static url.
// All other comics require knowing what the sequence number for the
// latest comic is. At least the comics I read daily.
// await Bot.ReplyAsync(“https://www.questionablecontent.net/comics/4467.png”);
//var licd = $”https://leasticoulddo.com/comic/{DateTime.Today:yyyyMMdd}”;
// await Bot.ReplyLaterAsync(licd, 5);