Skip to content

josetaas/discordt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

A command-line interface for Discord.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages