Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 975 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 975 Bytes

Discordt

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.

Installation

Clone the repository, then run pip install -e . in the repository's directory.

Usage

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.

TODO / Known Issues

  • Exceptions are not yet handled. Will have to restart the client when they happen.
  • Private channels are not yet handled.
  • And more!