move updater to own module

This commit is contained in:
Fabian Dill
2020-01-18 15:45:52 +01:00
parent ec95e4ab5e
commit b58558eb75
6 changed files with 60 additions and 39 deletions

View File

@@ -1,4 +1,3 @@
import aioconsole
import argparse
import asyncio
import functools
@@ -7,9 +6,14 @@ import logging
import re
import shlex
import urllib.request
import websockets
import zlib
import ModuleUpdate
ModuleUpdate.update()
import websockets
import aioconsole
import Items
import Regions
from MultiClient import ReceivedItem, get_item_name_from_id, get_location_name_from_address
@@ -348,7 +352,7 @@ async def console(ctx : Context):
if receiving_player == slot and item_id == seeked_item_id:
location_id, finding_player = check
name_finder = ctx.player_names[team, finding_player]
hint = f"[Hint]: {name}'s {item} can be found in " \
hint = f"[Hint]: {name}'s {item} can be found at " \
f"{get_location_name_from_address(location_id)} in {name_finder}'s World"
notify_team(ctx, team, hint)
else: