Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codewithswastik/discord-lib
discord-lib currently supports discord bots written in JSON, XML and yaml.
https://github.com/codewithswastik/discord-lib
discord
Last synced: 3 months ago
JSON representation
discord-lib currently supports discord bots written in JSON, XML and yaml.
- Host: GitHub
- URL: https://github.com/codewithswastik/discord-lib
- Owner: CodeWithSwastik
- License: mit
- Created: 2021-07-01T04:14:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-04T12:02:47.000Z (over 3 years ago)
- Last Synced: 2024-10-15T16:41:19.985Z (3 months ago)
- Topics: discord
- Language: Python
- Homepage:
- Size: 92.8 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discord-lib 0.0.6
discord-lib currently supports discord bots written in JSON, XML and yaml. It will soon support toml, etc
## Installation
```
pip install git+https://github.com/CodeWithSwastik/discord-lib
```## Usage
### CLI
```
pythom -m discordlib [filepath]
```### Code
```python
from discordlib import Clientclient = Client("filepath")
client.run()
```Note:
You can access the commands.Bot object by referencing `client.bot` and with it you can manipulate it however you want (add commands, listeners, anything that can be done with discord.py).## Current Limitations:
- There is no way to extend the namespace outside a command
- There is no way to use a database
- Listeners don't work well