Skip to main content

A python wrapper for the Discord API

Project description

# discord.py

discord.py is an API wrapper for Discord written in Python.

This was written to allow easier writing of bots or chat logs.

## This module is alpha!

The discord API is constantly changing and the wrapper API is as well. There will be no effort to keep backwards compatibility.

## Quick Example

```py
import discord

client = discord.Client()
client.login('email', 'password')

@client.event
def on_message(message):
if message.content.startswith('!hello'):
client.send_message(message.channel, 'Hello was received!')

@client.event
def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')

client.run()
```

You can find examples in the examples directory.

## Requirements

- Python 2.7+ or Python 3.3+.
- `ws4py` library
- `requests` library

Usually `pip` will handle these for you.

## Related Projects

- [discord.js](https://github.com/discord-js/discord.js)
- [node-discord](https://github.com/izy521/node-discord)
- [Discord.NET](https://github.com/RogueException/Discord.Net)
- [DiscordSharp](https://github.com/Luigifan/DiscordSharp)
- [Discord4J](https://github.com/knobody/Discord4J)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

discord.py-0.2.1.zip (17.3 kB view details)

Uploaded Source

File details

Details for the file discord.py-0.2.1.zip.

File metadata

  • Download URL: discord.py-0.2.1.zip
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for discord.py-0.2.1.zip
Algorithm Hash digest
SHA256 fa3294c7b735ccc94ac08476656a788e03913e7d37e3da25061508d9e6b42cb4
MD5 1d24b386c36996a5913e0bb910dc2de3
BLAKE2b-256 8f2931fd961b3fcb72c60c17c414bb06a298bbe3068087323a3e3a89e1734a90

See more details on using hashes here.

Supported by

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