perhaps not doxxing myself would be a good idea

This commit is contained in:
randomuser 2021-05-24 23:00:05 -05:00
parent 4167163510
commit 5d4366c200
2 changed files with 6 additions and 14 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
__pycache__ __pycache__
config.py

17
main.py
View File

@ -1,13 +1,14 @@
import requests import requests
import json import json
import time import time
from mastosnake import Mastosnake as mastosnake from mastosnake import Mastosnake as mastosnake
from snake import Snake as snake from snake import Snake as snake
from config import token
from config import host
host = 'tilde.zone/'
postend = 'api/v1/statuses' postend = 'api/v1/statuses'
getend = 'api/v1/polls/' getend = 'api/v1/polls/'
token = '5mvTdpbj6lF55WRjky7IgOj-BNpH5MkBqSvaOeHLowM'
auth = {'Authorization': 'Bearer ' + token } auth = {'Authorization': 'Bearer ' + token }
def main(): def main():
@ -35,15 +36,5 @@ def main():
time.sleep(10) time.sleep(10)
print("posting new game status") print("posting new game status")
if __name__ == '__main__':
#req = requests.post("https://" + host + prefix, json=params, headers=auth)
#print(req.text)
#print("https://" + host + prefix2 + json.loads(req.text)['id'])
#r = requests.get("https://" + host + prefix2 + json.loads(req.text)['poll']['id'])
#print(req.text)
#r = requests.get("https://" + host + prefix2 + '42003')
#print(r.text)
#mastosnake.updateState(json.loads(r.text))
#print(mastosnake.game.render())
main() main()