Extraction code humble bundle pour une meileur lecture

This commit is contained in:
Kepka Ludovic
2025-08-21 08:07:41 +02:00
committed by skylanix
parent 762873f3b5
commit 49502ac13b

View File

@@ -35,7 +35,7 @@ async def checkHumbleBundleAndNotify(bot: Client):
if _isEnable() :
try :
bundle = _callHexas()
if _isNotAlreadyNotified(bundle) :
if bundle != None and _isNotAlreadyNotified(bundle) :
message = _formatMessage(bundle)
await bot.get_channel(ConfigurationHelper().getIntValue('humble_bundle_channel')).send(message)
db.session.add(GameBundle(id=bundle['id'], name=bundle['name'], json = json.dumps(bundle)))