On 11/05/16, solaris said the following...
ok, im getting an error that states
"importerror: no module named mystic_bbs"
Is that running it as a .py from the commandline or running the .mpy from the BBS?
If you just want to run to test from the commandline try this one:
import tweepy
import sys
# Consumer keys and access tokens, used for OAuth
consumer_key = 'CONSUMEERKEY'
consumer_secret = 'CONSUMERSECRET'
access_token = 'ACCESSTOKEN'
access_token_secret = 'ACCESSSECRET'
# OAuth process, using the keys and tokens
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret)
# Creation of the actual interface, using authentication
api = tweepy.API(auth)
if len(sys.argv) >= 2:
tweet_text = sys.argv[1]
else:
tweet_text = "Still messing about with tweepy and twitter API. :)"
if len(tweet_text) <= 140:
api.update_status(status=tweet_text)
else:
print "tweet not sent. Too long. 140 chars Max."
Not sure if I left it all out or not. Just got home from the hospital and am pretty loopy on pain medication. Just looking through my hard drive I believe that was my initial test prior to using it in Mystic.
-=>Richard Miles<=-
-=>Captain Obvious<=-
-=>bbs.shadowscope.com<=-
--- Mystic BBS v1.12 A31 (Windows)
* Origin: Shadowscope BBS | bbs.shadowscope.com | Temple, GA (21:1/157)