Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 940 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 940 Bytes

DiscordPy - iPyBot [Open Source Discord Bot]

iPyBot - Bot for Discord

installation

DiscordPy

python -m pip install discord.py

Critical Info about commands :

1- Bot Intent requires all intents in program

botIntent=discord.Intents.all()
Bot=commands.Bot(intents=botIntent,command_prefix="py ",help_command=None)

2- Adding "on_message" event require to use Bot."proccess_command"

3- Also adding "on_message" event require to check message author isnt our bot

@Bot.event
async def on_message(msg : Message):
    if(msg.author!=Bot.user):
        if(msg.content.startswith(Bot.command_prefix)):
            await Bot.process_commands(msg)

4- File for Bot credential and Room IDs and more