C++ discord client oriented for performance
Go to file
2021-01-13 00:07:50 -05:00
.github/workflows improve build process, add github actions 2021-01-07 02:41:49 -05:00
.readme readme 2020-11-15 21:00:20 -05:00
ci improve build process, add github actions 2021-01-07 02:41:49 -05:00
cmake improve build process, add github actions 2021-01-07 02:41:49 -05:00
components pull out chat input into its own component, rename some stuff 2021-01-12 20:13:10 -05:00
css add typing indicator with optional res/typing_indicator.gif 2021-01-11 18:27:46 -05:00
dialogs fix vanity urls with - not being recognized 2020-12-10 02:37:12 -05:00
discord fix crash from stickers 2021-01-12 00:11:33 -05:00
res add typing indicator gif. its been edited please dont sue me 2021-01-12 00:16:43 -05:00
thirdparty improve build process, add github actions 2021-01-07 02:41:49 -05:00
windows add typing indicator with optional res/typing_indicator.gif 2021-01-11 18:27:46 -05:00
.clang-format connect and heartbeat 2020-08-17 02:40:03 -04:00
.gitignore add more css selectors 2020-09-09 18:32:45 -04:00
.gitmodules improve build process, add github actions 2021-01-07 02:41:49 -05:00
abaddon.cpp change id 2021-01-13 00:07:50 -05:00
abaddon.hpp reload settings + custom css path 2020-12-18 02:05:24 -05:00
CMakeLists.txt improve build process, add github actions 2021-01-07 02:41:49 -05:00
emojis.cpp add mention/emoji/channel completion 2020-12-20 22:10:45 -05:00
emojis.hpp add mention/emoji/channel completion 2020-12-20 22:10:45 -05:00
filecache.cpp get rid of some warnings 2020-12-22 02:35:57 -05:00
filecache.hpp fix #7 and some other "improvements" 2020-12-11 00:12:43 -05:00
imgmanager.cpp support animated guild icon 2020-12-21 19:08:44 -05:00
imgmanager.hpp support animated guild icon 2020-12-21 19:08:44 -05: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
README.md update readme links 2021-01-07 19:11:21 -05:00
settings.cpp support animated guild icon 2020-12-21 19:08:44 -05:00
settings.hpp improve build process, add github actions 2021-01-07 02:41:49 -05:00
util.cpp add mention/emoji/channel completion 2020-12-20 22:10:45 -05:00
util.hpp add mention/emoji/channel completion 2020-12-20 22:10:45 -05:00

Screenshots

Building:

Windows:

  1. git clone https://github.com/uowuo/abaddon && cd abaddon
  2. vcpkg install gtkmm:x64-windows nlohmann-json:x64-windows ixwebsocket:x64-windows cpr:x64-windows zlib:x64-windows simpleini:x64-windows sqlite3:x64-windows openssl: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 cpr
  3. mkdir build && cd build
  4. cmake ..
  5. make

Linux:

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

Downloads (from CI):

  • Windows: here
  • MacOS: here unsigned, unpackaged, requires gtkmm3 and cpr (e.g. from homebrew)
  • Linux: here unpackaged (for now), requires gtkmm3 and cpr. built on Ubuntu 18.04 + gcc9 Make sure you start from the directory where css and res are

Dependencies:

TODO:

  • Voice support
  • Unread indicators
  • User status
  • Nicknames
  • Server/user management
  • A bunch of other stuff

Styling

CSS selectors

.channel-list - Container of the channel list
.channel-row - All rows within the channel container
.channel-row-channel - Only rows containing a channel
.channel-row-category - Only rows containing a category
.channel-row-guild - Only rows containing a guild
.channel-row-label - All labels within the channel container

.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-extra - Label containing BOT/Webhook
.message-text - The text of a user message
.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)
.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

Settings

Settings are configured (for now) by editing abaddon.ini
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
  • emojis (true or false, default true) - resolve unicode and custom emojis to images. this needs to be false to allow GTK to render emojis by itself
  • 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

misc

  • linkcolor (string) - color to use for links in messages