An alternative Discord client made with C++/gtkmm, PowerPC OSX version
Go to file
2021-11-18 02:37:08 -05:00
.github/workflows typo 2021-11-18 02:37:08 -05:00
.readme update readme + screenshot 2021-03-12 01:32:12 -05:00
ci copy msys2 dependencies to artifact 2021-11-18 02:02:50 -05:00
cmake make ixwebsocket find module work 2021-10-11 02:10:18 -04:00
components Fix warnings shown by GCC (#47) 2021-11-16 19:38:14 +00:00
css fix up channel row selection to work how i want it to 2021-07-06 02:38:27 -04:00
dialogs Fix warnings shown by GCC (#47) 2021-11-16 19:38:14 +00:00
discord Merge branch 'master' of https://github.com/uowuo/abaddon into msys 2021-11-18 01:03:35 -05:00
fonts update twemoji to 13.1 2021-05-28 22:59:55 -04:00
res update emojis 2021-06-09 19:01:11 -04:00
thirdparty update ixwebsocket submodule from master 2021-11-18 01:08:19 -05:00
windows Fix warnings shown by GCC (#47) 2021-11-16 19:38:14 +00:00
.clang-format connect and heartbeat 2020-08-17 02:40:03 -04:00
.gitignore update .gitignore 2021-05-24 22:39:10 -04:00
.gitmodules Guild settings 1 (#19) 2021-01-15 06:37:35 +00:00
abaddon.cpp Merge branch 'master' of https://github.com/uowuo/abaddon into msys 2021-11-18 01:03:35 -05:00
abaddon.hpp preserve channel list expansion and active channel (#36) 2021-11-04 01:39:56 -04:00
CMakeLists.txt use find modules for ixwebsocket/simpleini 2021-10-11 01:03:31 -04:00
config.h.in add cmake config file for resource dir 2021-07-02 21:41:05 -04:00
constants.hpp pull out chat list into a separate component 2021-05-24 01:42:04 -04:00
emojis.cpp allow usage of multiple emoji shortcodes 2021-04-06 00:56:24 -04:00
emojis.hpp allow usage of multiple emoji shortcodes 2021-04-06 00:56:24 -04:00
filecache.cpp Fix warnings shown by GCC (#47) 2021-11-16 19:38:14 +00:00
filecache.hpp speed up images with libcurl multi, raise concurrency 2021-02-11 18:03:16 -05:00
http.cpp fix potential crash in curl 2021-06-04 00:57:41 -04:00
http.hpp fix potential crash in curl 2021-06-04 00:57:41 -04:00
imgmanager.cpp try loading resources from share, fallback to cwd 2021-06-30 18:15:03 -04:00
imgmanager.hpp add menu item to clear image cache 2021-01-20 02:26:04 -05:00
LICENSE license (closes #23) 2021-04-03 01:48:59 -04:00
MurmurHash3.cpp get rid of some warnings 2020-12-22 02:35:57 -05:00
MurmurHash3.h get rid of some warnings 2020-12-22 02:35:57 -05:00
platform.cpp use fontconfig setup on msys too 2021-11-09 01:01:33 -05:00
platform.hpp preserve channel list expansion and active channel (#36) 2021-11-04 01:39:56 -04:00
README.md Merge branch 'master' of https://github.com/uowuo/abaddon 2021-11-02 21:01:58 -04:00
settings.cpp preserve channel list expansion and active channel (#36) 2021-11-04 01:39:56 -04:00
settings.hpp preserve channel list expansion and active channel (#36) 2021-11-04 01:39:56 -04:00
state.cpp add files that should have been pushed with last commit 2021-11-04 01:48:13 -04:00
state.hpp add files that should have been pushed with last commit 2021-11-04 01:48:13 -04:00
util.cpp initial msys compatibility 2021-11-09 00:55:18 -05:00
util.hpp preserve channel list expansion and active channel (#36) 2021-11-04 01:39:56 -04:00

Abaddon


Alternative Discord client made in C++ with GTK

😎Discord Server

Current features:

  • Not Electron
  • Handles most types of chat messages including embeds, images, and replies
  • Completely styleable/customizable with CSS (if you have a system GTK theme it won't really use it though)
  • Identifies to Discord as the web client unlike other clients so less likely to be falsely flagged as spam1
  • Set status
  • Start new DMs and group DMs
  • View user profiles (notes, mutual servers, mutual friends)
  • Kick, ban, and unban members
  • Modify roles and modify members' roles
  • Manage invites
  • Manage emojis
  • View audit log
  • Emojis2
  • Thread support3
  • Animated avatars, server icons, emojis (can be turned off)

1 - Abaddon tries its best to make Discord think it's a legitimate web client. Some of the things done to do this include: using a browser user agent, sending the same IDENTIFY message that the official web client does, using API v9 endpoints in all cases, and not using endpoints the web client does not normally use. There are still a few smaller inconsistencies, however. For example the web client sends lots of telemetry via the /science endpoint (uBlock origin stops this) as well as in the headers of all requests. In any case, you should use an official client for joining servers, sending new DMs, or managing your friends list if you are afraid of being caught in Discord's spam filters (unlikely).

2 - Unicode emojis are substituted manually as opposed to rendered by GTK on non-Windows platforms. This can be changed with the stock_emojis setting as shown at the bottom of this README. A CBDT-based font using Twemoji is provided to allow GTK to render emojis natively on Windows.

3 - There are some inconsistencies with thread state that might be encountered in some more uncommon cases, but they are the result of fundamental issues with Discord's thread implementation.

Windows:

  1. git clone https://github.com/uowuo/abaddon && cd abaddon
  2. vcpkg install gtkmm:x64-windows nlohmann-json:x64-windows ixwebsocket:x64-windows zlib:x64-windows simpleini:x64-windows sqlite3:x64-windows openssl:x64-windows curl:x64-windows
  3. mkdir build && cd build
  4. cmake -G"Visual Studio 16 2019" -A x64 -DCMAKE_TOOLCHAIN_FILE=c:\path\to\vcpkg\scripts\buildsystems\vcpkg.cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVCPKG_TARGET_TRIPLET=x64-windows ..
  5. Build with Visual Studio

Or, do steps 1 and 2, and open CMakeLists.txt in Visual Studio if vcpkg integrate install was run

Mac:

  1. git clone https://github.com/uowuo/abaddon && cd abaddon
  2. brew install gtkmm3 nlohmann-json
  3. mkdir build && cd build
  4. cmake ..
  5. make

Linux:

  1. Install dependencies: libgtkmm-3.0-dev, libcurl4-gnutls-dev, and nlohmann-json
  2. git clone https://github.com/uowuo/abaddon && cd abaddon
  3. mkdir build && cd build
  4. cmake ..
  5. make

Downloads:

Latest release version: https://github.com/uowuo/abaddon/releases/latest

CI:

  • Windows: here
  • MacOS: here unsigned, unpackaged, requires gtkmm3 (e.g. from homebrew)
  • Linux: here unpackaged (for now), requires gtkmm3. built on Ubuntu 18.04 + gcc9

⚠️ If you use Windows, make sure to start from the directory containing css and res

On Linux, css and res can also be loaded from ~/.local/share/abaddon or /usr/share/abaddon

abaddon.ini will also be automatically used if located at ~/.config/abaddon/abaddon.ini and there is no abaddon.ini in the working directory

Dependencies:

TODO:

  • Voice support
  • Unread indicators
  • User activities
  • Nicknames
  • More server management stuff
  • Manage friends
  • A bunch of other stuff

Styling

CSS selectors

.app-window - Applied to all windows. This means the main window and all popups
.app-popup - Additional class for .app-windows when the window is not the main window

.channel-list - Container of the channel list

.messages - Container of user messages
.message-container - The container which holds a user's messages
.message-container-author - The author label for a message container
.message-container-timestamp - The timestamp label for a message container
.message-container-avatar - Avatar for a user in a message
.message-container-extra - Label containing BOT/Webhook
.message-text - The text of a user message
.pending - Extra class of .message-text for messages pending to be sent
.failed - Extra class of .message-text for messages that failed to be sent
.message-attachment-box - Contains attachment info
.message-reply - Container for the replied-to message in a reply (these elements will also have .message-text set)
.message-input - Applied to the chat input container
.replying - Extra class for chat input container when a reply is currently being created
.reaction-box - Contains a reaction image and the count
.reacted - Additional class for reaction-box when the user has reacted with a particular reaction
.reaction-count - Contains the count for reaction

.completer - Container for the message completer
.completer-entry - Container for a single entry in the completer
.completer-entry-label - Contains the label for an entry in the completer
.completer-entry-image - Contains the image for an entry in the completer

.embed - Container for a message embed
.embed-author - The author of an embed
.embed-title - The title of an embed
.embed-description - The description of an embed
.embed-field-title - The title of an embed field
.embed-field-value - The value of an embed field
.embed-footer - The footer of an embed

.members - Container of the member list
.members-row - All rows within the members container
.members-row-label - All labels in the members container
.members-row-member - Rows containing a member
.members-row-role - Rows containing a role
.members-row-avatar - Contains the avatar for a row in the member list

.status-indicator - The status indicator
.online - Applied to status indicators when the associated user is online
.idle - Applied to status indicators when the associated user is away
.dnd - Applied to status indicators when the associated user is on do not disturb
.offline - Applied to status indicators when the associated user is offline

.typing-indicator - The typing indicator (also used for replies)

Used in reorderable list implementation:
.drag-icon .drag-hover-top .drag-hover-bottom

Used in guild settings popup:
.guild-settings-window
.guild-members-pane-list - Container for list of members in the members pane
.guild-members-pane-info - Container for member info
.guild-roles-pane-list - Container for list of roles in the roles pane

Used in profile popup:
.mutual-friend-item - Applied to every item in the mutual friends list
.mutual-friend-item-name - Name in mutual friend item
.mutual-friend-item-avatar - Avatar in mutual friend item
.mutual-guild-item - Applied to every item in the mutual guilds list
.mutual-guild-item-name - Name in mutual guild item
.mutual-guild-item-icon - Icon in mutual guild item
.mutual-guild-item-nick - User nickname in mutual guild item
.profile-connection - Applied to every item in the user connections list
.profile-connection-label - Label in profile connection item
.profile-connection-check - Checkmark in verified profile connection items
.profile-connections - Container for profile connections
.profile-notes - Container for notes in profile window
.profile-notes-label - Label that says "NOTE"
.profile-notes-text - Actual note text
.profile-info-pane - Applied to container for info section of profile popup
.profile-info-created - Label for creation date of profile
.user-profile-window
.profile-main-container - Inner container for profile
.profile-avatar
.profile-username
.profile-switcher - Buttons used to switch viewed section of profile
.profile-stack - Container for profile info that can be switched between
.profile-badges - Container for badges
.profile-badge

Settings

Settings are configured (for now) by editing abaddon.ini
You should edit these while the client is closed even though there's an option to reload while running
This listing is organized by section.
For example, memory_db would be set by adding memory_db = true under the line [discord]

discord

  • memory_db (true or false, default false) - if true, Discord data will be kept in memory as opposed to on disk
  • token (string) - Discord token used to login, this can be set from the menu
  • prefetch (true or false, default false) - if true, new messages will cause the avatar and image attachments to be automatically downloaded

http

  • user_agent (string) - sets the user-agent to use in HTTP requests to the Discord API (not including media/images)
  • concurrent (int, default 10) - how many images can be concurrently retrieved

gui

  • member_list_discriminator (true or false, default true) - show user discriminators in the member list
  • stock_emojis (true or false, default true) - allow abaddon to substitute unicode emojis with images from emojis.bin, must be false to allow GTK to render emojis itself
  • custom_emojis (true or false, default true) - download and use custom Discord emojis
  • css (string) - path to the main CSS file
  • animations (true or false, default true) - use animated images where available (e.g. server icons, emojis, avatars). false means static images will be used
  • animated_guild_hover_only (true or false, default true) - only animate guild icons when the guild is being hovered over
  • owner_crown (true or false, default true) - show a crown next to the owner
  • gateway (string) - override url for Discord gateway. must be json format and use zlib stream compression
  • api_base (string) - override base url for Discord API

style

  • linkcolor (string) - color to use for links in messages
  • expandercolor (string) - color to use for the expander in the channel list
  • nsfwchannelcolor (string) - color to use for NSFW channels in the channel list

Environment variables

  • ABADDON_NO_FC (Windows only) - don't use custom font config
  • ABADDON_CONFIG - change path of configuration file to use. relative to cwd or can be absolute