diff --git a/typeclasses/sailing.py b/typeclasses/sailing.py index 231ed26..1e92865 100755 --- a/typeclasses/sailing.py +++ b/typeclasses/sailing.py @@ -429,6 +429,13 @@ class ResetBoat(Script): """ Script to pull the boat back out to sea and dock it at an island. """ + def at_script_creation(self): + self.key = "boat-reset" + self.desc = "Sailing the Boat" + self.interval = 60 * 60 # reset every hour + self.start_delay = True # wait self.interval until first call + self.persistent = True + def at_repeat(self, **kwargs): script_results = search.scripts("sailing") if script_results: diff --git a/utils/user_info.py b/utils/user_info.py index 20068e5..eadefb8 100755 --- a/utils/user_info.py +++ b/utils/user_info.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from evennia.utils import logger + import requests def location(character): @@ -14,6 +16,7 @@ def location(character): response = requests.get(f'https://ipapi.co/{address}/json/', timeout=1).json() + logger.info(f"User location: {response}") city = response.get("city") or "Unknown City" region = response.get("region") or "Unknown Region" country = response.get("country_name") or "Unknown Country"