Skip to content

Commit 732490f

Browse files
committed
oop
1 parent 452276e commit 732490f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

HyperCodePyBot/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# __init__.py
2+
import warnings
23
import discord
34
from discord.ext import commands
45
from discord import app_commands
@@ -25,7 +26,7 @@
2526

2627
class HyperCodePyBot(commands.Bot):
2728
def __init__(self, command_prefix='!'):
28-
if command_prefix == "/": warn("Command prefix cannot be '/' as it is reserved for slash commands. Use a different prefix or no prefix at all. it is buggy it not show autocompletion in chat and not recommended.")
29+
if command_prefix == "/": warnings.warn("Command prefix cannot be '/' as it is reserved for slash commands. Use a different prefix or no prefix at all. it is buggy it not show autocompletion in chat and not recommended.")
2930
intents = discord.Intents.default()
3031
intents.message_content = True
3132
super().__init__(command_prefix=command_prefix, intents=intents)

0 commit comments

Comments
 (0)