1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 18:03:12 +00:00

Format code

This commit is contained in:
wlinator 2024-04-04 16:41:42 -04:00
parent 40bff1a5b1
commit 7c2198a28c
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,6 @@
import asyncio
import os
import traceback
import asyncio
import discord
from dotenv import load_dotenv

View file

@ -1,8 +1,8 @@
import os
import time
from dotenv import load_dotenv
from discord.ext import commands
from dotenv import load_dotenv
from db import database
@ -10,6 +10,7 @@ load_dotenv('.env')
xp_gain_per_message = int(os.getenv("XP_GAIN_PER_MESSAGE"))
xp_gain_cooldown = int(os.getenv("XP_GAIN_COOLDOWN"))
class XpService:
"""
Stores and retrieves XP from the database for a given user.
@ -148,6 +149,7 @@ class XpService:
# For levels below 10 and levels 110 and above
return 10 * current_level + 27 if current_level < 10 else 42 * current_level + 37
class XpRewardService:
def __init__(self, guild_id):
self.guild_id = guild_id