Skip to main content

The Python module for discord.js.

Project description

discord.js

This module lets you use discord.js in python by offering a similar syntax to the actual discord.js.

Installation

Stable version:

pip install discord.js

Working version:

pip install git+https://github.com/CodeWithSwastik/discord-js

Simple bot

from discordjs import Client
from javascript import console

client = Client()

client.on("ready", lambda:
    console.log("Bot is ready")
)

async def msg(message):
    if message.content.startswith("!ping"):
        await message.channel.send("pong")

client.on("message", msg)

client.login('Token')

Project details


Download files

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

Source Distribution

discord.js-1.0.6.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file discord.js-1.0.6.tar.gz.

File metadata

  • Download URL: discord.js-1.0.6.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.10.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.8.5

File hashes

Hashes for discord.js-1.0.6.tar.gz
Algorithm Hash digest
SHA256 734b94718cb905bc6dd5f4dec008fcad074897de2494a61c49b45bfe2419f68c
MD5 233937e23a00333560dd1af1f20a4051
BLAKE2b-256 356fa983b58875d8b9a39ae82ca470d53ec380da743febf78e809abb22dd2e3d

See more details on using hashes here.

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