The Python module for discord.js.
Project description
discord.js
This module let's you use discord.js in python by offering a similar syntax to the actual discord.js.
Simple bot
from discordjs import Client, console
client = Client()
client.on("ready", lambda:
console.log("Bot is ready")
)
async def msg(message):
if message.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.3.tar.gz
(1.7 kB
view hashes)