Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
fix colour2 not applying correctly and temp disable gdpys bot (due to…
Browse files Browse the repository at this point in the history
… it not working)
  • Loading branch information
RealistikDash committed Oct 24, 2020
1 parent a7ba792 commit 280148d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions handlers/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ async def profile_handler(request: aiohttp.web.Request):
friend_state = await user_helper.get_relationship(account_id, target_id)

logging.debug(friend_state)
logging.debug(response)

response += joint_string(
{
Expand Down Expand Up @@ -170,7 +169,7 @@ async def update_profile_stats_handler(request: aiohttp.web.Request):
user.icon = int(post_data.get("icon", 0))
user.diamonds = int(post_data.get("diamonds", 0))
user.colour1 = int(post_data.get("color1", 0))
user.colour2 = int(post_data.get("colour2", 0))
user.colour2 = int(post_data.get("color2", 0))
user.ship = int(post_data.get("accShip", 0))
user.ball = int(post_data.get("accBall", 0))
user.ufo = int(post_data.get("accBird", 0))
Expand Down Expand Up @@ -349,3 +348,6 @@ async def friends_list_handler(request: aiohttp.web.Response):
response = response[:-1]
logging.debug(response)
return aiohttp.web.Response(text=response)

async def friend_req_handler(request: aiohttp.web.Response):
"""Handles friend requests ."""
6 changes: 3 additions & 3 deletions helpers/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self):
def send_message(self, accountid: int, subject: str, body: str):
pass # send message

gdpysbot = GDPySBot()
#gdpysbot = GDPySBot()

def setup():
return gdpysbot
#def setup():
# return gdpysbot
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def main(debug=False):
logging_level = logging.DEBUG if user_config["debug"] else logging.INFO
if debug:
logging_level = logging.DEBUG
if user_config["gdpysbot_enabled"]:
start_gdpysbot()
#if user_config["gdpysbot_enabled"]:
# start_gdpysbot() # TODO: Re-enable once its working
logging.basicConfig(level=logging_level)
lang.load_langs(user_config["lang"])
start_plugins()
Expand Down

0 comments on commit 280148d

Please sign in to comment.