mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 18:23:12 +00:00
Rename utils to lib
This commit is contained in:
parent
471a5b2d87
commit
bce5ad563f
30 changed files with 25 additions and 25 deletions
|
@ -1,6 +1,6 @@
|
|||
import random
|
||||
|
||||
from utils import checks
|
||||
from lib import checks
|
||||
|
||||
|
||||
class ReactionHandler:
|
||||
|
|
2
main.py
2
main.py
|
@ -7,7 +7,7 @@ import discord
|
|||
from discord.ext import commands
|
||||
from dotenv import load_dotenv
|
||||
|
||||
import utils.resources
|
||||
import lib.resources
|
||||
from config import json_loader
|
||||
from handlers.ReactionHandler import ReactionHandler
|
||||
from handlers.XPHandler import XPHandler
|
||||
|
|
|
@ -6,7 +6,7 @@ from discord.ext import commands
|
|||
from dotenv import load_dotenv
|
||||
|
||||
from services.Currency import Currency
|
||||
from utils import checks
|
||||
from lib import checks
|
||||
|
||||
load_dotenv('.env')
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ from discord.ext import commands, tasks
|
|||
from config import json_loader
|
||||
from services.Birthday import Birthday
|
||||
from main import strings
|
||||
from utils import time
|
||||
from lib import time
|
||||
|
||||
logs = logging.getLogger('Racu.Core')
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ from services.BlackJackStats import BlackJackStats
|
|||
from services.Currency import Currency
|
||||
from handlers.ItemHandler import ItemHandler
|
||||
from main import economy_config, strings
|
||||
from utils import economy_embeds, economy_functions, checks, interaction, embeds
|
||||
from lib import economy_embeds, economy_functions, checks, interaction, embeds
|
||||
|
||||
logs = logging.getLogger('Racu.Core')
|
||||
load_dotenv('.env')
|
||||
|
|
|
@ -6,7 +6,7 @@ from discord.ext import commands
|
|||
from dotenv import load_dotenv
|
||||
|
||||
from services.Currency import Currency
|
||||
from utils import economy_embeds, checks
|
||||
from lib import economy_embeds, checks
|
||||
|
||||
load_dotenv('.env')
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ from dotenv import load_dotenv
|
|||
|
||||
from services.Currency import Currency
|
||||
from main import economy_config
|
||||
from utils import economy_embeds, checks, interaction
|
||||
from lib import economy_embeds, checks, interaction
|
||||
|
||||
load_dotenv('.env')
|
||||
|
||||
|
|
|
@ -5,11 +5,11 @@ from datetime import datetime, timedelta
|
|||
from discord.ext import commands
|
||||
from dotenv import load_dotenv
|
||||
|
||||
import utils.time
|
||||
import lib.time
|
||||
from services.Dailies import Dailies
|
||||
from services.Currency import Currency
|
||||
from main import strings
|
||||
from utils import checks
|
||||
from lib import checks
|
||||
|
||||
load_dotenv('.env')
|
||||
|
||||
|
@ -34,7 +34,7 @@ class DailyCog(commands.Cog):
|
|||
ctx_daily = Dailies(ctx.author.id)
|
||||
|
||||
if not ctx_daily.can_be_claimed():
|
||||
wait_time = datetime.now() + timedelta(seconds=utils.time.seconds_until(7, 0))
|
||||
wait_time = datetime.now() + timedelta(seconds=lib.time.seconds_until(7, 0))
|
||||
unix_time = int(round(wait_time.timestamp()))
|
||||
|
||||
return await ctx.respond(content=strings["daily_no_claim"].format(ctx.author.name, unix_time))
|
||||
|
|
|
@ -7,7 +7,7 @@ from dotenv import load_dotenv
|
|||
|
||||
from services.Currency import Currency
|
||||
from main import economy_config
|
||||
from utils import economy_embeds, checks, interaction
|
||||
from lib import economy_embeds, checks, interaction
|
||||
|
||||
load_dotenv('.env')
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import subprocess
|
|||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
from utils import interaction, embeds, checks
|
||||
from lib import interaction, embeds, checks
|
||||
|
||||
logs = logging.getLogger('Racu.Core')
|
||||
|
||||
|
@ -46,7 +46,7 @@ class BasicCog(commands.Cog):
|
|||
logs.warning(f"{ctx.author.name} couldn't do the intro command: Muted in the Race Cave")
|
||||
return
|
||||
|
||||
# elif member and not discord.utils.get(member.roles, id=719995790319157279):
|
||||
# elif member and not discord.lib.get(member.roles, id=719995790319157279):
|
||||
# em = discord.Embed(description="It seems that you don't have permission to do that!")
|
||||
# await ctx.respond(embed=em)
|
||||
# logs.warning(f"{ctx.author.name} couldn't do the intro command: No Permissions")
|
||||
|
|
|
@ -6,7 +6,7 @@ from discord.ext import commands
|
|||
from dotenv import load_dotenv
|
||||
|
||||
from services.Inventory import Inventory
|
||||
from utils import checks
|
||||
from lib import checks
|
||||
|
||||
load_dotenv('.env')
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from services.Currency import Currency
|
|||
from services.Inventory import Inventory
|
||||
from services.Item import Item
|
||||
from services.ShopItem import ShopItem
|
||||
from utils import checks
|
||||
from lib import checks
|
||||
|
||||
load_dotenv('.env')
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ from discord.ext import commands
|
|||
from services.Currency import Currency
|
||||
from services.Xp import Xp
|
||||
from services.Dailies import Dailies
|
||||
from utils import checks
|
||||
from lib import checks
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
logs = logging.getLogger('Racu.Core')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from discord.ext import commands
|
||||
|
||||
from services.Xp import Xp
|
||||
from utils import embeds, checks
|
||||
from lib import embeds, checks
|
||||
|
||||
|
||||
class LevelCog(commands.Cog):
|
||||
|
|
|
@ -3,7 +3,7 @@ import logging
|
|||
from discord.ext import commands
|
||||
|
||||
from main import strings
|
||||
from utils import checks
|
||||
from lib import checks
|
||||
|
||||
logs = logging.getLogger('Racu.Core')
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import logging
|
|||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
from utils import checks
|
||||
from lib import checks
|
||||
|
||||
logs = logging.getLogger('Racu.Core')
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from dotenv import load_dotenv
|
|||
from services.Currency import Currency
|
||||
from services.Inventory import Inventory
|
||||
from services.Item import Item
|
||||
from utils import interaction, checks
|
||||
from lib import interaction, checks
|
||||
|
||||
logs = logging.getLogger('Racu.Core')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ from dotenv import load_dotenv
|
|||
|
||||
from services.Currency import Currency
|
||||
from services.ShopItem import ShopItem
|
||||
from utils import checks
|
||||
from lib import checks
|
||||
|
||||
load_dotenv('.env')
|
||||
special_balance_name = os.getenv("SPECIAL_BALANCE_NAME")
|
||||
|
|
|
@ -11,7 +11,7 @@ from services.Currency import Currency
|
|||
from services.SlotsStats import SlotsStats
|
||||
from handlers.ItemHandler import ItemHandler
|
||||
from main import economy_config, strings
|
||||
from utils import economy_embeds, checks
|
||||
from lib import economy_embeds, checks
|
||||
|
||||
est = pytz.timezone('US/Eastern')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ from discord.ext import commands
|
|||
from dotenv import load_dotenv
|
||||
|
||||
from db import database
|
||||
from utils import checks
|
||||
from lib import checks
|
||||
|
||||
load_dotenv('.env')
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from services.BlackJackStats import BlackJackStats
|
|||
from services.Currency import Currency
|
||||
from services.SlotsStats import SlotsStats
|
||||
from main import strings, economy_config
|
||||
from utils import checks
|
||||
from lib import checks
|
||||
|
||||
load_dotenv('.env')
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from discord.ext import commands
|
||||
import datetime, time
|
||||
from main import strings
|
||||
from utils import checks
|
||||
from lib import checks
|
||||
|
||||
|
||||
class UptimeCog(commands.Cog):
|
||||
|
|
Loading…
Reference in a new issue