mirror of
https://github.com/sigmasternchen/MinervaBot
synced 2025-03-15 07:59:00 +00:00
bad
This commit is contained in:
parent
fa7dba25f4
commit
f6e3cafb83
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
@ -4,6 +4,8 @@ import subprocess
|
||||||
import datetime
|
import datetime
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
ACCES_TOKEN_KEY = "holder"
|
||||||
|
|
||||||
from config import *
|
from config import *
|
||||||
from genconfig import *
|
from genconfig import *
|
||||||
|
|
||||||
|
@ -19,7 +21,7 @@ def connect():
|
||||||
consumer_secret = CONSUMER_SECRET
|
consumer_secret = CONSUMER_SECRET
|
||||||
)
|
)
|
||||||
if USE_PIN_AUTH:
|
if USE_PIN_AUTH:
|
||||||
if not ('ACCESS_TOKEN_KEY' in vars() or 'a' in globals()):
|
if ACCESS_TOKEN_KEY == "holder":
|
||||||
print("auth url: " + auth.get_authorization_url())
|
print("auth url: " + auth.get_authorization_url())
|
||||||
pin = input("pin: ").strip()
|
pin = input("pin: ").strip()
|
||||||
token = auth.get_access_token(
|
token = auth.get_access_token(
|
||||||
|
|
Loading…
Reference in a new issue