https://github.com/codewithswastik/discord-js
The Python module for discord.js
https://github.com/codewithswastik/discord-js
Last synced: 25 days ago
JSON representation
The Python module for discord.js
- Host: GitHub
- URL: https://github.com/codewithswastik/discord-js
- Owner: CodeWithSwastik
- Created: 2021-07-21T05:24:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-10T23:51:26.000Z (over 2 years ago)
- Last Synced: 2025-04-12T01:04:24.418Z (12 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```python
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')
```