Skip to content

DvorakDwarf/disrust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disrust


Peek 2023-01-17 17-34

What is this ?

Disrust is a TUI discord client written entirely in glorious Rust. It works*.

The app is not fully feature complete. It's missing a lot of discord features, but the basics like navigating between servers, viewing channels, sending messages, etc are there. I might eventually come back to clean up code and make it fancier.

It's not fully complete because I really badly wanted to move on to my "infinite storage glitch" project idea and because every 10 minutes spent on doing anything UI related is shaving off at least a year of my lifespan each time.

I made it mostly to get better at Rust and because it's fun to work on a larger project for once.


Now, you might be asking yourself:

But is this aligned with TOS ? No.

The use of this app is very much not kosher according to discord's TOS. I do not recommend using it seriously.

Installation

  • You need to have Rust and cargo installed in order to compile the code
  • Download the code in .zip or git clone it wherever you like
  • Go into that directory and run cargo run
  • Paste your user token in when the program prompts for it. If you don't know what that is, look up a video on youtube or smthn

Controls

  • Use arrows to navigate.
  • Press e to enter editing mode and esc to leave it
  • Press enter to open a server and view channels or send a message if you are in editing mode
  • Press esc to leave a server if not in editing mode
  • Press q to quit the app

Credits and final comments

Thanks to Traumatism (https://github.com/Traumatism) and their project ToastCord (https://github.com/Traumatism/ToastCord) for guidance. This would have been a lot more confusing to code without them.

Thanks to 6cord (https://github.com/diamondburned/6cord) for the initial inspiration

I appreciate any and all roasting of the code so I can improve.

Feel free to modify this code however you like (As long as the license remains GPL 3.0) or use for reference on how to interact with discord's API and specifically gateway, it was a pain in the ass to setup. I wish I had a reference like this in Rust when I started.

The API in general is pretty neat btw. I recommend messing with it or maybe starting a project with it.

About

A discord TUI client written entirely in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages