Преглед изворни кода

docs: add README.md (#298)

Co-authored-by: ayn2op <119342035+ayn2op@users.noreply.github.com>
Matthieu LAURENT пре 3 година
родитељ
комит
273c9cddbe
3 измењених фајлова са 80 додато и 65 уклоњено
  1. 80 0
      docs/README.md
  2. 0 0
      docs/discordo.1
  3. 0 65
      man/discordo.md

+ 80 - 0
docs/README.md

@@ -0,0 +1,80 @@
+# Discordo
+
+Discordo is a lightweight, secure, and feature-rich Discord terminal client.  
+
+## Warning
+
+Automated user accounts or "self-bots" are against Discord's Terms of Service. I am not responsible for any loss caused by using "self-bots" or Discordo.
+
+## Authentification
+
+There are two ways to login:  
+> In both cases, the authentication token is stored securely in the default OS-specific keyring.
+
+**Username / Password login**
+
+1. Run `discordo` without arguments.  
+2. Enter your email and password then click on the "Login" button to continue.
+
+**Token login**
+
+Use the `--token` flag:
+
+```
+discordo --token "OTI2MDU5NTQxNDE2Nzc5ODA2.Yc2KKA.2iZ-5JxgxG-9Ub8GHzBSn-NJjNg"
+```
+
+## Keybindings
+
+Keybindings are configurable in the [configuration file](#configuration).
+
+| Action                | Keybinding |
+| --------------------- | ---------- |
+| **Guilds Tree**       |            |
+| Focus                 | Alt + g    |
+|                       |            |
+| **Messages Text**     |            |
+| Focus                 | Alt + m    |
+| Show image            | i          |
+| Copy message content  | c          |
+| Reply without mention | r          |
+| Reply with mention    | R          |
+| Select reply          | s          |
+| Reply previous        | Up arrow   |
+| Select next           | Down arrow |
+| Select first          | Home       |
+| Select last           | End        |
+|                       |            |
+| **Message Input**     |            |
+| Focus                 | Alt + i    |
+| Send message          | Enter      |
+| Paste from clipboard  | Ctrl + v   |
+| Launch editor         | Ctrl + e   |
+
+## Configuration
+
+The configuration file allows you to edit keybindings or change the theme.
+By default, it is stored in the following location:
+
+| Operating System | Configuration File Location                             |
+| ---------------- | ------------------------------------------------------- |
+| Unix             | `$HOME/.config/discordo/config.yml`                     |
+| Darwin           | `$HOME/Library/Application Support/discordo/config.yml` |
+| Windows          | `%AppData%/discordo/config.yml`                         |
+
+You can also use the `--config` flag to specify a different location for the configuration file:
+
+```
+discordo --config "/foo/bar/config.yml"
+```
+
+
+## Log files
+
+The log file is stored in the following location:
+
+| Operating System | Log File Location                        |
+| ---------------- | ---------------------------------------- |
+| Unix             | `$HOME/.cache/discordo/logs.txt`         |
+| Darwin           | `$HOME/Library/Caches/discordo/logs.txt` |
+| Windows          | `%LocalAppData%/discordo/logs.txt`       |

+ 0 - 0
man/discordo.1 → docs/discordo.1


+ 0 - 65
man/discordo.md

@@ -1,65 +0,0 @@
-discordo 1
-=======================================
-
-NAME
-----
-
-`discordo` - A lightweight, secure, and feature-rich Discord terminal client
-
-SYNOPSIS
---------
-
-`discordo` [`--token "TOKEN"`] [`--config "OPTIONAL/PATH/HERE.yml"`]
-
-DESCRIPTION
------------
-
-`discordo` is a lightweight, secure, and feature-rich Discord terminal client.  
-
-If no token is provided, you will be prompted with an interactive login.  
-The token is stored securely in the default OS-specific keyring.
-
-USAGE
--------
-
-The default keybindings in the app are as follow  
-
-### Guilds Tree
-
-| Action | Keybinding |
-| ------ | ---------- |
-| Focus  | Alt + g    |
-| Toggle | Alt + b    |
-
-### Messages Text
-
-| Action                | Keybinding |
-| --------------------- | ---------- |
-| Focus                 | Alt + m    |
-| Show image            | i          |
-| Copy message content  | c          |
-| Reply without mention | r          |
-| Reply with mention    | R          |
-| Select reply          | s          |
-| Reply previous        | Up arrow   |
-| Select next           | Down arrow |
-| Select first          | Home       |
-| Select last           | End        |
-
-### Message Input
-
-| Action               | Keybinding |
-| -------------------- | ---------- |
-| Focus                | Alt + i    |
-| Send message         | Enter      |
-| Paste from clipboard | Ctrl + v   |
-| Launch editor        | Ctrl + e   |
-
-FILES
------
-
-*$HOME/.config/discordo/config.yml*
-  The configuration file.
-
-*$HOME/.cache/discordo/logs.txt*
-  The log file.