Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
onuratakan committed Mar 25, 2023
1 parent 3e2e146 commit cabdf7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


setup(name='address_ping_system',
version='0.3.0',
version='0.3.1',
description="""Mapping Addresses to Dynamic IPs, Simplified""",
long_description_content_type="text/markdown",
include_package_data=True,
Expand Down
2 changes: 2 additions & 0 deletions src/address_ping_system/address_ping_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def load_cache(self):

def ping(self, user):
if time.time() - self.last_ping_time < self.cache_time:
if aps.command_line:
self.close()
return True

self.integration.send("message", "hi", user)
Expand Down

0 comments on commit cabdf7b

Please sign in to comment.