Some modules for use with the Sopel IRC bot (https://sopel.chat)
This module adds a couple commands that allow users to track packages.
The .track command tells the bot to look up tracking info for a package when you give a number with it, e.g.:
<@user> .track 999999999999999
<Sopel> Package status: FAILURE
<Sopel> Status details: Shipment exception
<Sopel> Location: Keasbey, NJ 08832
<Sopel> Last updated: 2017-01-26 at 02:05:34
It works by first guessing the carrier using tracking_url, and then using Shippo to look up the tracking data. You will need a shippo API key to use this module.
Allows users to maintain a personal list of packages, using Sopel's "memory" function. Has three commands: add, del, and list. List will look up tracking info for all packages in a user's list. Memory is stored by user nick.
<@user> .mypkg add 999999999999999
<Sopel> user: package added.
<@user> .mypkg list
<Sopel> user: you have 1 packages.
<Sopel> Package status: FAILURE
<Sopel> Status details: Shipment exception
<Sopel> Location: Keasbey, NJ 08832
<Sopel> Last updated: 2017-01-26 at 02:05:34
<@user> .mypkg del 999999999999999
<Sopel> user: package deleted.
Fetches live scores for NFL games and reports them in-channel.
<@user> .nfl Seahawks
<Sopel> LA 10 - 10 SEA
<Sopel> 09:55 remaining in Q3
<@user> .nfl chiefs
<Sopel> Pre-game HOU 0 - 0 KC
<Sopel> Game time Sun @ 8:30 Eastern
The bot will only work with the full name of the team ("seahawks", not 'SEA').