Code Monkey home page Code Monkey logo

6cord's Introduction

Deprecated

6cord has been deprecated in favor of [gtkcord3](https://github.com/diamondburned/gtkcord3). Important bugs may not be fixed, but PRs are still welcomed.

6cord

Donate using Liberapay

Installation

Method 1. (recommended, precompiled binaries)

Linux Linux (no dbus) Linux (arm64) Windows

Only do this if the CI passed (a green tick in the commit bar)

Method 2. (building from source)

git clone https://gitlab.com/diamondburned/6cord
cd 6cord && go build
./6cord

# Optional
mkdir -p ~/bin/
mv ./6cord ~/bin/
echo PATH="$HOME/bin:$PATH" >> ~/.bashrc && . ~/.bashrc # or any shellrc

Method 3. (package manager)

# Arch Linux, using your favourite AUR helper:
yay install 6cord
# Alternatively you can install '6cord-git'
# which is the latest development version.

# FreeBSD:
pkg install 6cord

# Void Linux:
xbps-install 6cord

# Alpine Linux (in the testing repo):
apk add 6cord

Getting the token

This is possible from both the web client and the Electron client.

  1. Hit Ctrl+Shift+I
  2. Switch to the Network tab
  3. Find Discord API requests. This is usually called messages, ack, typing, etc
  4. Search for the Authorization header. This is the token.

Running 6cord with the token

./6cord -t "TOKEN_HERE"

  • If you have Gnome Keyring (usually the case on most DEs), the token would automatically be stored securely. This could be tested by running ./6cord without any arguments.
    • To reset the token, override it with a new one using -t
  • It is also possible to move the 6cord.toml file from the root of this Git repository to ~/.config/6cord/, then run without any arguments.

Additional things

Quirks

  • The ~ key could be used to both preview images and select a message ID
  • /mentions is useless at the moment. This is planned to change in the future.
  • There is currently no global emoji support. This is also planned to change, along with emoji previews.

Additional keybinds

  • Refer to the Quick Start section displayed when starting 6cord
  • Tab to show/hide the server list
  • Input field history is cycled with Alt + Up/Down
  • PgUp and PgDn can be used to jump between servers in the list
  • There are some Vim binds available ie ^n and ^p to move between fuzzy listed items

command-prefix

  • The following variables are available: CHANNEL, GUILD, USERNAME and DISCRIM
  • This follows tview's rich text format:
    • Coloring text with [#424242]
    • Bold text with [::b]
    • Both can be done with [#424242::b]
    • Reset with [-], [::-] or [-::-]
  • You need to manually escape square brackets by adding an opening ([) bracket before a closing (]) bracket
    • Example: [${guild}] to [${guild}[]

Color support

6cord runs in 256 color mode most of the time. To force true color, run:

TERM=xterm-truecolor ./6cord`

(xterm-truecolor is known to break a lot of applications including htop, only use it with 6cord)

To limit 6cord to strictly 16 colors, run:

TERM=xterm-basic ./6cord

To run 6cord in monochrome mode:

TERM=xterm ./6cord

Supported Image backends

Currently, Xorg is the only supported image backend. SIXEL support proved itself to be challenging with how tcell and tview call redraws. There is no Kitty terminal implementation in Golang that is available as a library yet (termui has a PR with Kitty support). There are things in my priority list right now. That said, PRs are welcomed.

Screenshots

Credits

6cord's People

Contributors

diamondburned avatar fr3fou avatar maxice8 avatar mcom1 avatar renzix avatar tadeokondrak avatar willeccles avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.