Discordt is a command-line interface for discordapp using the discord.py wrapper and curses.
Since Discord has yet to release an official API, anything could break at any point.
Clone the repository, then run pip install -e .
in the repository's directory.
Simply running discordt
will bring up the command-line client.
However, if you want to import discordt into your own code:
import discordt
dtcontroller = discordt.DTController()
@dtcontroller.dtclient.event
def on_message(message):
pass
@dtcontroller.dtclient.event
def on_ready():
dtcontroller.print_output('Hello world!')
dtcontroller.run('example@example.com', '123456')
See examples for more detailed usage.
- Exceptions are not yet handled. Will have to restart the client when they happen.
- Private channels are not yet handled.
- And more!