Skip to content

Commit

Permalink
fixed import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cringe-neko-girl committed Jan 11, 2025
1 parent 56e067e commit 6a50073
Show file tree
Hide file tree
Showing 22 changed files with 124 additions and 5 deletions.
Binary file modified Cogs/__pycache__/ai.cpython-312.pyc
Binary file not shown.
Binary file modified Cogs/__pycache__/ampa.cpython-312.pyc
Binary file not shown.
Binary file modified Cogs/__pycache__/anime.cpython-312.pyc
Binary file not shown.
Binary file modified Cogs/__pycache__/help.cpython-312.pyc
Binary file not shown.
Binary file modified Cogs/__pycache__/information.cpython-312.pyc
Binary file not shown.
Binary file modified Cogs/__pycache__/pokemon.cpython-312.pyc
Binary file not shown.
Binary file modified Cogs/__pycache__/quest.cpython-312.pyc
Binary file not shown.
Binary file modified Cogs/__pycache__/sync.cpython-312.pyc
Binary file not shown.
Binary file modified Cogs/__pycache__/system.cpython-312.pyc
Binary file not shown.
Binary file modified Cogs/__pycache__/test.cpython-312.pyc
Binary file not shown.
Binary file modified Data/Images/bot_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Data/__pycache__/const.cpython-312.pyc
Binary file not shown.
Binary file modified Events/__pycache__/appearance.cpython-312.pyc
Binary file not shown.
Binary file modified Events/__pycache__/ascetics.cpython-312.pyc
Binary file not shown.
Binary file modified Events/__pycache__/code_logger.cpython-312.pyc
Binary file not shown.
Binary file modified Events/__pycache__/quest_events.cpython-312.pyc
Binary file not shown.
Binary file modified Events/__pycache__/quest_tools.cpython-312.pyc
Binary file not shown.
Binary file modified Imports/__pycache__/depend_imports.cpython-312.pyc
Binary file not shown.
Binary file modified Imports/__pycache__/discord_imports.cpython-312.pyc
Binary file not shown.
Binary file modified Imports/__pycache__/log_imports.cpython-312.pyc
Binary file not shown.
118 changes: 117 additions & 1 deletion Imports/discord_imports.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,118 @@
# Discord Imports
# Core Discord and Commands
import discord
from discord.ext import commands, tasks

# Discord Types and Interactions
from discord import (
AllowedMentions,
ButtonStyle,
ChannelType,
Client,
Embed,
Emoji,
File,
Guild,
Interaction,
Intents,
Member,
Message,
PartialEmoji,
Permissions,
Role,
SelectOption,
StageChannel,
Status,
TextChannel,
Thread,
User,
VoiceChannel,
Activity,
ActivityType,
Reaction,
FFmpegPCMAudio,
)

# Slash Commands and App Commands
from discord import app_commands
from discord.app_commands import (
Command,
Group,
Choice,
check,
describe,
guilds,
default_permissions,
CommandTree,
Namespace,
)

# Components
from discord.ui import (
Button,
Modal,
Select,
TextInput,
View,
)

# Typing Utilities
from typing import Literal, Optional, List, Dict, Union

# Constants and Utilities
from discord.utils import (
get,
find,
escape_markdown,
format_dt,
)

# Errors
from discord.errors import Forbidden, HTTPException, NotFound
from discord.ext.commands import (
BucketType,
Context,
Greedy,
bot_has_permissions,
check,
cooldown,
group,
has_permissions,
has_role,
command,
BadArgument,
BotMissingPermissions,
BotMissingRole,
CheckFailure,
CommandError,
CommandInvokeError,
CommandNotFound,
CommandOnCooldown,
ExtensionError,
ExtensionFailed,
ExtensionNotFound,
MaxConcurrencyReached,
MissingPermissions,
MissingRole,
NoPrivateMessage,
NotOwner,
UserInputError,
)

# Converters
from discord.ext.commands.converter import (
ColorConverter,
EmojiConverter,
MemberConverter,
RoleConverter,
TextChannelConverter,
)

# Help Command Utilities
from discord.ext.commands import (
Paginator,
HelpCommand,
DefaultHelpCommand,
)

# Slash Commands, Additional Types
from discord.ext.commands import when_mentioned, when_mentioned_or, clean_content
11 changes: 7 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
from Imports.log_imports import logger
from Imports.discord_imports import *
from Imports.depend_imports import *
import os
import traceback
import asyncio
import requests
from aiohttp import web
from motor.motor_asyncio import AsyncIOMotorClient


# Custom Imports
from Imports.log_imports import logger
from Imports.discord_imports import *
from discord.ext import commands
from Imports.depend_imports import *
from dotenv import load_dotenv


Expand All @@ -27,7 +30,7 @@
else:
print(f"{key} = {value}")

# Custom Imports



class BotSetup(commands.AutoShardedBot):
Expand Down

0 comments on commit 6a50073

Please sign in to comment.