Fsoky Community
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
1 deletions
-
README.md
|
@ -102,6 +102,14 @@ if __name__ == "__main__": |
|
|
|
|
|
|
|
|
## New donations in real-time without Oauth2 |
|
|
## New donations in real-time without Oauth2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```py |
|
|
```py |
|
|
from donationalerts_api import Alert |
|
|
from donationalerts_api import Alert |
|
|
``` |
|
|
|
|
|
|
|
|
alert = Alert("token") |
|
|
|
|
|
|
|
|
|
|
|
@alert.event() |
|
|
|
|
|
def new_donation(event): |
|
|
|
|
|
print(event) |
|
|
|
|
|
``` |
|
|