|
|
@ -66,7 +66,7 @@ class PublicRelations(Bureau):
|
|
|
|
shortcode = ''.join(random.choice(string.ascii_letters + string.digits)
|
|
|
|
shortcode = ''.join(random.choice(string.ascii_letters + string.digits)
|
|
|
|
for _ in range(5)).encode()
|
|
|
|
for _ in range(5)).encode()
|
|
|
|
with self.dbenv.begin(db=self.tweetdb, write=True) as txn:
|
|
|
|
with self.dbenv.begin(db=self.tweetdb, write=True) as txn:
|
|
|
|
txn.put(shortcode, msgid.encode())
|
|
|
|
txn.put(shortcode, tweet_id.encode())
|
|
|
|
|
|
|
|
|
|
|
|
@add_command("tweetpic", "Post a Document Camera Image to Twitter")
|
|
|
|
@add_command("tweetpic", "Post a Document Camera Image to Twitter")
|
|
|
|
def tweet_pic(self):
|
|
|
|
def tweet_pic(self):
|
|
|
|