Skip to content

Commit

Permalink
Update webhook.py
Browse files Browse the repository at this point in the history
  • Loading branch information
filispeen committed Oct 12, 2023
1 parent c8dd289 commit fd97720
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions F_Discord_webhook/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def on_file_created(event):
observer.schedule(event_handler, path=directory, recursive=False)
observer.start()

def main(url):
def main():
global url
global webhook_availibility
if not webhook_availibility:
loop = asyncio.new_event_loop() # Create a new event loop
Expand All @@ -113,7 +114,7 @@ def main(url):
observer.join()

if __name__ == '__main__':
main(url)
main()



0 comments on commit fd97720

Please sign in to comment.