Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
testing logger
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ from ratelimiter import RateLimiter
|
|
| 15 |
from datetime import datetime # for times
|
| 16 |
from pytz import timezone # for times
|
| 17 |
import asyncio # check if used
|
|
|
|
| 18 |
|
| 19 |
zurich_tz = timezone("Europe/Zurich")
|
| 20 |
|
|
@@ -25,6 +26,8 @@ DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None)
|
|
| 25 |
intents = discord.Intents.all()
|
| 26 |
bot = commands.Bot(command_prefix='!', intents=intents)
|
| 27 |
|
|
|
|
|
|
|
| 28 |
|
| 29 |
#rate_limiter = RateLimiter(max_calls=10, period=60) # needs testing
|
| 30 |
|
|
|
|
| 15 |
from datetime import datetime # for times
|
| 16 |
from pytz import timezone # for times
|
| 17 |
import asyncio # check if used
|
| 18 |
+
import logging
|
| 19 |
|
| 20 |
zurich_tz = timezone("Europe/Zurich")
|
| 21 |
|
|
|
|
| 26 |
intents = discord.Intents.all()
|
| 27 |
bot = commands.Bot(command_prefix='!', intents=intents)
|
| 28 |
|
| 29 |
+
logger = logging.getLogger(__name__)
|
| 30 |
+
logging.basicConfig(level=logging.DEBUG)
|
| 31 |
|
| 32 |
#rate_limiter = RateLimiter(max_calls=10, period=60) # needs testing
|
| 33 |
|