-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b96bbf
commit f751ec1
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# tagbot | ||
|
||
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 | ||
|
||
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Tag me (<a href="https://twitter.com/HowsMyDrivingPA?ref_src=twsrc%5Etfw">@HowsMyDrivingPA</a>) and include vehicle information like this:<br><br><state|province|territory>:<plate>, e.g. PA:abc1234</p>— Hows My Driving PA (@HowsMyDrivingPA) <a href="https://twitter.com/HowsMyDrivingPA/status/1205878681723424768?ref_src=twsrc%5Etfw">December 14, 2019</a></blockquote> | ||
|
||
## 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'); | ||
``` |