Skip to main content

A Command-like discord message handler for discord.

Project description


This is a discord handler for people who use discord.Client but want to use the bot like discord.ext that is developed by Tim232.

Example :

import discord
from handler import Handler

client = discord.Client()
mHandler = Handler(client=client, directory="modules", prefix="!", help_command=True)

async def on_ready():

async def on_message(message):
    await mHandler.process_messages(message)"token")


import discord

async def run(client, message):
    if message.content.startswith("!Test"):
    if message.content == "!example":

content_key = ["!example"]
startswith_key = ["!Test"]
  • The handler automatically generates {prefix}help command if client's help_command is True.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

MessageHandler-1.0.2-py3-none-any.whl (2.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page