Update BOT_R6.py

This commit is contained in:
FRNessar authored and GitHub committed 2020-03-28 17:33:16 +01:00
1 parent 38385e0ade
commit fc74382375
1 file changed
+4 -4
+4 -4
View File
@@ -9,7 +9,7 @@ import MySQLdb
import asyncio
import r6sapi as api
db = MySQLdb.connect(host="localhost",user="***REMOVED***",passwd="***REMOVED***", db="forum")
db = MySQLdb.connect(host="localhost",user="***REMOVED***",passwd="", db="forum")
cur = db.cursor()
rankelo = [[1100,1200,1300,1400,1500],[1600,1700,1800,1900,2000],[2100,2200,2300,2400,2500],[2600,2800,3000],[3200,3600,4000],[4400],[5000]]
@@ -39,7 +39,7 @@ def r6rank(ts3conn, cur, r6, tsuid):
# info = json.loads(response.text)
try:
async def run(a):
auth = api.Auth("***REMOVED***", "***REMOVED***")
auth = api.Auth("", "")
player = await auth.get_player(a, api.Platforms.UPLAY)
mmr2 = await player.get_rank(api.RankedRegions.EU)
rank = mmr2.mmr
@@ -99,10 +99,10 @@ def addrank(ts3conn, rankadd, tsuid):
with ts3.query.TS3Connection("localhost") as ts3conn:
ts3conn.login(
client_login_name="***REMOVED***",
client_login_password="***REMOVED***"
client_login_password=""
)
ts3conn.use(sid=1)
ts3conn.clientupdate(client_nickname="Bot R6")
while True:
prog(ts3conn,cur)
time.sleep(60)
time.sleep(60)