aaronbauman / tagbot
Twitter bot to query license plate violations against PPA payment portal.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:drupal-module
Requires
- themattharris/tmhoauth: ^0.8.4
This package is auto-updated.
Last update: 2024-12-15 02:08:29 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:
— Hows My Driving PA (@HowsMyDrivingPA) December 14, 2019
<state|province|territory>:<plate>, e.g. PA:abc1234
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');