aaronbauman/tagbot

There is no license information available for the latest version (1.0.0) of this package.

Twitter bot to query license plate violations against PPA payment portal.

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:drupal-module

1.0.0 2019-12-26 14:45 UTC

This package is auto-updated.

Last update: 2024-04-15 00:40:34 UTC


README

Tagbot is a Drupal module that negotiates between a twitter bot and PPA's payment form to provide information about unpaid traffic violations. Visit the bot live at https://twitter.com/HowsMyDrivingPA

Usage

Tag me (@HowsMyDrivingPA) and include vehicle information like this:

<state|province|territory>:<plate>, e.g. PA:abc1234

— Hows My Driving PA (@HowsMyDrivingPA) December 14, 2019

Contributing

Install tagbot on your Drupal site to start tinkering:

composer require aaronbauman/tagbot

Requirements

  • A twitter developer account with OAuth creds
  • A Drupal site, running cron as frequently as possible. (HowsMyDrivingPA runs every minute.)

Install

Define the following constants, e.g. in your settings.php file:

define('TAGBOT_CONSUMER_KEY', 'consumer key from twitter developer account');
define('TAGBOT_CONSUMER_SECRET', 'consumer secret...');
define('TAGBOT_ACCOUNT_TOKEN', 'oauth token for the account that will be the bot');
define('TAGBOT_ACCOUNT_SECRET', 'oauth secret for account that will be the bot');