A package allowing you to display interactive help in Discord easily
Project description
# Discord Interactive Help
![gif](https://user-images.githubusercontent.com/22237185/53283254-da5a3100-3786-11e9-95cd-cd4dd4859bd2.gif)
A Discord python framework to display an interactive help easily.
## Features
* 🔆 **Easy to naviguate** : Use reactions to naviguate through the Help manual.
* âš™ **Customized reaction** : Use any emoji as naviguation icon.
* 🎮 **Commands support** : Go even further with interactive commands.
## How to use
Download the package :
`pip install discord-interactive`
---
Import the `Page` and `Help` objects into your bot's code, and create your own help manual :
```
from discord_interactive import Page, Help
# Define each page
root = Page('Welcome !\n')
page_1 = Page('This is page 1', parent=root)
page_2 = Page('This is page 2', parent=page_1, root=root)
# Link pages together
page_1.add_link(page_2, 'Click this icon to access page 2', '💩')
root.add_link(page_1, 'Click this icon to access page 1')
# Create the Help object
client = discord.Client()
h = Help(client, root)
# And display the help !
await h.display(message.author)
```
---
**For a full working example, please take at [this Repl.it](https://repl.it/@NicolasRemond/example-of-interactive-help).**
**Or you can simply experience the interactivity of this full working example by joining [this Discord server](https://discord.gg/cH6hUbw). Just type /help in the chat !**
## Further details
The basic usage was shown in this README. If you are interested in more detailed explanations or advanced usage, such as interactive commands, please take a look at the [wiki](https://github.com/astariul/discord_interactive_help/wiki) !
Example of advanced usage :
![gif](https://user-images.githubusercontent.com/22237185/53492662-c4c56e00-3adc-11e9-8be8-1b10d9f85e8a.gif)
If you can't find what you are looking for, you can open an [issue](https://github.com/astariul/discord_interactive_help/issues).
## Notes
* *This idea was already known for some time, I didn't get the idea myself. I just wanted to share an easy framework to implement it for your own bot.*
* *This is working only with the Python Discord API.*
![gif](https://user-images.githubusercontent.com/22237185/53283254-da5a3100-3786-11e9-95cd-cd4dd4859bd2.gif)
A Discord python framework to display an interactive help easily.
## Features
* 🔆 **Easy to naviguate** : Use reactions to naviguate through the Help manual.
* âš™ **Customized reaction** : Use any emoji as naviguation icon.
* 🎮 **Commands support** : Go even further with interactive commands.
## How to use
Download the package :
`pip install discord-interactive`
---
Import the `Page` and `Help` objects into your bot's code, and create your own help manual :
```
from discord_interactive import Page, Help
# Define each page
root = Page('Welcome !\n')
page_1 = Page('This is page 1', parent=root)
page_2 = Page('This is page 2', parent=page_1, root=root)
# Link pages together
page_1.add_link(page_2, 'Click this icon to access page 2', '💩')
root.add_link(page_1, 'Click this icon to access page 1')
# Create the Help object
client = discord.Client()
h = Help(client, root)
# And display the help !
await h.display(message.author)
```
---
**For a full working example, please take at [this Repl.it](https://repl.it/@NicolasRemond/example-of-interactive-help).**
**Or you can simply experience the interactivity of this full working example by joining [this Discord server](https://discord.gg/cH6hUbw). Just type /help in the chat !**
## Further details
The basic usage was shown in this README. If you are interested in more detailed explanations or advanced usage, such as interactive commands, please take a look at the [wiki](https://github.com/astariul/discord_interactive_help/wiki) !
Example of advanced usage :
![gif](https://user-images.githubusercontent.com/22237185/53492662-c4c56e00-3adc-11e9-8be8-1b10d9f85e8a.gif)
If you can't find what you are looking for, you can open an [issue](https://github.com/astariul/discord_interactive_help/issues).
## Notes
* *This idea was already known for some time, I didn't get the idea myself. I just wanted to share an easy framework to implement it for your own bot.*
* *This is working only with the Python Discord API.*
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
File details
Details for the file discord_interactive-1.0.8.tar.gz
.
File metadata
- Download URL: discord_interactive-1.0.8.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbb0fb18f24b609d33794e1d5799b82719c5fa75c99e733572ec7b0cbea088ad |
|
MD5 | 121abfcc6718ea49746ed23807ef860d |
|
BLAKE2b-256 | e88cc358ccaf9de912d4b2f233e9402b4c7a6cc26fa0c3617ad2a0226e558539 |