Skip to content

katguerrier/sopel-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

sopel-modules

Some modules for use with the Sopel IRC bot (https://sopel.chat)

Modules

Package Tracking (track.py)

This module adds a couple commands that allow users to track packages.

.track

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.

.mypkg

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.

NFL Live Scores

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').

About

Some modules for use with the Sopel IRC bot (https://sopel.chat)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages