REF: Disabled the Spotify Module for now due to API issues

FEAT: Fixed Spotify so that if it is used, it can be used by multiple users
DOC: Changed the XP to have a cooldown of 30s
This commit is contained in:
Dan
2024-06-22 14:22:58 -04:00
parent 39603b1e06
commit 24629f4c0f
3 changed files with 177 additions and 68 deletions

View File

@ -33,7 +33,7 @@ class XPModule:
xp = random.randint(1, 5) # Award between 1 and 5 XP for a message
logger.debug(f"Awarding {xp} XP to user {user_id}")
self.give_xp(user_id, xp)
self.cooldown[user_id] = now + timedelta(seconds=60) # 1 minute cooldown # noqa: E501
self.cooldown[user_id] = now + timedelta(seconds=10) # 1 minute cooldown # noqa: E501
def give_xp(self, user_id, xp):
conn = get_connection()