you can pick out the exact frame where her heart breaks

This commit is contained in:
Lynne Megido 2018-11-02 01:17:02 +10:00
parent 738e90ecb3
commit 7d0aa37116
Signed by: lynnesbian
GPG Key ID: FB7B970303ACE499
2 changed files with 12 additions and 3 deletions

View File

@ -7,10 +7,19 @@
import requests, sqlite3, json, argparse
from mastodon import Mastodon
db = sqlite3.connect("database.db")
c = db.cursor()
c.execute("CREATE TABLE IF NOT EXISTS `data` (username VARCHAR NOT NULL, secret VARCHAR NOT NULL, latest_post VARCHAR)")
c.execute("CREATE TABLE IF NOT EXISTS `data` (username VARCHAR NOT NULL, appid VARCHAR NOT NULL, appsecret VARCHAR NOT NULL, secret VARCHAR NOT NULL, latest_post VARCHAR)")
cfg = json.load(open("meta.json"))
instance_url = input("Instance URL: ")
print("Registering app...")
client_id, client_secret = Mastodon.create_app(cfg['name'],
api_base_url=instance_url,
scopes="write:statuses",
website="https://git.lynnesbian.space/lynnesbian/curious-greg")

View File

@ -5,5 +5,5 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import requests, sqlite3, json
from mastodon import Mastodon