|
|
4 роки тому | |
|---|---|---|
| .github | 4 роки тому | |
| LICENSE | 4 роки тому | |
| README.md | 4 роки тому | |
| config.go | 4 роки тому | |
| discord.go | 4 роки тому | |
| go.mod | 4 роки тому | |
| go.sum | 4 роки тому | |
| main.go | 4 роки тому | |
| renderer.go | 4 роки тому | |
| ui.go | 4 роки тому | |
| util.go | 4 роки тому |
Discordo is a lightweight, secure, and feature-rich Discord terminal client.
git clone https://github.com/ayntgl/discordo
cd discordo
go build
# optional
sudo mv ./discordo /usr/local/bin
yay -S discordo-gitdiscordo executable with no arguments in a new Terminal window.By default, Discordo utilizes OS-specific keyring to store credentials such as client authentication token. However, if you prefer not to use a keyring, you may set the
tokenfield in the configuration file (~/.config/discordo/config.json) and Discordo will prioritize the usage ofTokenfield to login instead of keyring.
Discordo aims to be highly configurable, it may be easily customized via a configuration file. It creates a default configuration file on the first start-up. The default and newly created configuration file is located at $HOME/.config/discordo/config.json. Here is a sample (not default) configuration file:
{
// The client authentication token (optional)
"Token": "",
// Enables mouse support.
"Mouse": true,
// Enables OS-specific desktop notifications when the client user is mentioned in non-selected channels.
"Notifications": true,
// Set a custom user agent for all of the HTTP requests.
"UserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36",
// Set the number of messages to retrieve when a text-based channel is selected.
"GetMessagesLimit": 30,
// The Theme field values can be hex color codes (#f44f36) or W3C color names.
"Theme": {
"PrimitiveBackgroundColor": "black",
"ContrastBackgroundColor": "blue",
"MoreContrastBackgroundColor": "green",
"BorderColor": "white",
"TitleColor": "white",
"GraphicsColor": "white",
"PrimaryTextColor": "white",
"SecondaryTextColor": "yellow",
"TertiaryTextColor": "green",
"InverseTextColor": "blue",
"ContrastSecondaryTextColor": "darkcyan"
},
"Keybindings": {
"GuildsTreeViewFocus": "Alt+Rune[1]",
"MessagesTextViewFocus": "Alt+Rune[2]",
"MessagesTextViewSelectPrevious": "Up",
"MessagesTextViewSelectNext": "Down",
"MessagesTextViewSelectFirst": "Home",
"MessagesTextViewSelectLast": "End",
"MessagesTextViewReplySelected": "Rune[r]",
"MessagesTextViewMentionReplySelected": "Rune[R]",
"MessageInputFieldFocus": "Alt+Rune[3]"
}
}
On Linux, clipboard support requires:
xclip or xsel for X11.wl-clipboard for Wayland.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.