The big security update.
This commit is contained in:
+5
-6
@@ -137,8 +137,7 @@ class Shitpost(object):
|
||||
Ja of Nee.. kom op nou.
|
||||
"""
|
||||
#We halen dit op van de twitter account @gietitaloan die vertrouwen wij als de ultieme waarheid
|
||||
#hahaha geheime tokens in de code hahahaha TODO
|
||||
consumer = oauth.Consumer(key="eUotijxUEcTVpegNCIzEqz0be", secret="Opj95FAhRkpgVpo61PEJcConvYHgAk7TlouETk2NaSh6dvhCLu")
|
||||
consumer = oauth.Consumer(key=self.bot.tokens["twitterKey"], secret=self.bot.tokens["twitterSecret"])
|
||||
client = oauth.Client(consumer)
|
||||
resp, content = client.request("https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=gietitaloan&count=1", "GET")
|
||||
#TODO kijken of resp iets zinnigs teruggeeft.. of iets doen met een try of catch ofzow
|
||||
@@ -166,7 +165,7 @@ class Shitpost(object):
|
||||
params = dict(
|
||||
template_id = '112898841', #de marku
|
||||
username = 'Stroopwafel',
|
||||
password = 'ruyter118',
|
||||
password = self.bot.passwords["imgflip"],
|
||||
text0 = boven,
|
||||
text1 = onder
|
||||
)
|
||||
@@ -192,7 +191,7 @@ class Shitpost(object):
|
||||
params = dict(
|
||||
template_id = '93296473', #de eriku
|
||||
username = 'Stroopwafel',
|
||||
password = 'ruyter118',
|
||||
password = self.bot.passwords["imgflip"],
|
||||
text0 = boven,
|
||||
text1 = onder
|
||||
)
|
||||
@@ -219,7 +218,7 @@ class Shitpost(object):
|
||||
params = {
|
||||
'template_id': '121572521', #delfts blauw
|
||||
'username': 'Stroopwafel',
|
||||
'password': 'ruyter118',
|
||||
'password': self.bot.passwords["imgflip"],
|
||||
'text0': 'dummy0',
|
||||
'text1': 'dummy1',
|
||||
'font': 'arial',
|
||||
@@ -292,7 +291,7 @@ class Shitpost(object):
|
||||
params = dict(
|
||||
template_id = '116231806', #de martijn
|
||||
username = 'Stroopwafel',
|
||||
password = 'ruyter118',
|
||||
password = self.bot.passwords["imgflip"],
|
||||
text0 = boven,
|
||||
text1 = onder
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user