diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..cc71ac7 --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +Hemna diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..6d806e0 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,18 @@ +CHANGES +======= + +v0.3.0 +------ + +* Added PBR Version + +v0.2.0 +------ + +* Updated command to 'tw' from 't'. Added Help +* First working version that tweets! + +v0.1.0 +------ + +* Initial commit diff --git a/Makefile b/Makefile index fa538e8..e391f84 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ docs: build cp Changelog docs/changelog.rst tox -edocs -clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts +clean: clean-build clean-pyc clean-test clean-dev ## remove all build, test, coverage and Python artifacts clean-build: ## remove build artifacts rm -fr build/ @@ -42,6 +42,10 @@ clean-test: ## remove test and coverage artifacts rm -fr htmlcov/ rm -fr .pytest_cache +clean-dev: + rm -rf $(VENVDIR) + rm Makefile.venv + coverage: ## check code coverage quickly with the default Python coverage run --source aprsd_twitter_plugin setup.py test coverage report -m diff --git a/aprsd_twitter_plugin/twitter.py b/aprsd_twitter_plugin/twitter.py index 4f12d0c..7c14643 100644 --- a/aprsd_twitter_plugin/twitter.py +++ b/aprsd_twitter_plugin/twitter.py @@ -1,7 +1,7 @@ import logging import tweepy -from aprsd import messaging, plugin +from aprsd import packets, plugin import aprsd_twitter_plugin @@ -80,8 +80,8 @@ class SendTweetPlugin(plugin.APRSDRegexCommandPluginBase): LOG.info("SendTweetPlugin Plugin") - from_callsign = packet.get("from") - message = packet.get("message_text", None) + from_callsign = packet.from_call + message = packet.message_text message = message.split(" ") del message[0] message = " ".join(message) @@ -105,4 +105,4 @@ class SendTweetPlugin(plugin.APRSDRegexCommandPluginBase): return "Tweet sent!" else: LOG.warning("SendTweetPlugin is disabled.") - return messaging.NULL_MESSAGE + return packets.NULL_MESSAGE diff --git a/requirements.txt b/requirements.txt index f840b21..a3c279e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ pbr -aprsd>=2.2.0 +aprsd>=2.7.0 tweepy