Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 6fee21d

Browse files
Merge pull request #721 from kish7105/main_1
fixed a bug and added some features
2 parents 22e9a6e + a1b0e85 commit 6fee21d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

projects/Discord Bot/main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77

88
token = "Your Token Here"
99

10-
bot = discord.bot(comand_prefix="!")
10+
bot = commands.Bot(
11+
command_prefix = "?", # the command prefix for the bot, self explanatory
12+
intents = discord.Intents.all(), # intents required for the functioning of the bot
13+
strip_after_prefix = True, # setting this to true will make it so that the command won't be affected by whitespaces within the command text
14+
case_insensitive = True # whether the commands should be case sensitive or not
15+
)
1116

1217
# The list below is a list that contains all the responses the bot can randomly choose from for the "ask" command
1318
# Scroll down to see the "ask" command's functionality

0 commit comments

Comments
 (0)