From 0b84c6d78de014ce5db63d99fbadaf6784b361d9 Mon Sep 17 00:00:00 2001 From: Nabil Date: Thu, 3 Jun 2021 17:22:05 +0200 Subject: [PATCH] edit README and added Update by your own feature --- CryptoNotify.py | 6 +++--- README.md | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CryptoNotify.py b/CryptoNotify.py index 454f0bf..cc4c975 100644 --- a/CryptoNotify.py +++ b/CryptoNotify.py @@ -12,9 +12,9 @@ async def on_ready(self): self.currentWallet.start() async def on_message(self, message): - if message.author == client.user: - return - await self.currentWallet() + if message.author != client.user and message.channel.id == settings["channelID"]: + await self.currentWallet() + return @tasks.loop(hours=1) async def currentWallet(self): diff --git a/README.md b/README.md index 0a32fe7..30d1779 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ pip install -r requirements.txt ## Usage Just run ```CryptoNotify.py``` +**The Bot will update the Wallet every hour. If you want to update the Wallet by your own just write something in the Notification Channel.** ## Notification ![](message.png)