Skip to content

Commit

Permalink
Update service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed May 3, 2023
1 parent 207f175 commit 034010b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions discordgsm/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
def tz(timezone: str):
return ZoneInfo(timezone)

if public:
sponsors_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'sponsors.json')

sponsors_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'sponsors.json')

if not os.path.isfile(sponsors_file):
with open(sponsors_file, 'w', encoding='utf8') as f:
json.dump({'348921660361146380': {'id': 'OTg1OTU1Nzg0NTE1MDE4ODQy', 'limit': 30}}, f, indent=4)
if not os.path.isfile(sponsors_file):
with open(sponsors_file, 'w', encoding='utf8') as f:
json.dump({'348921660361146380': {'id': 'OTg1OTU1Nzg0NTE1MDE4ODQy', 'limit': 30}}, f, indent=4)


def server_limit(user_id: int):
Expand Down

0 comments on commit 034010b

Please sign in to comment.