Giter Site home page Giter Site logo

fast-discord's Introduction

⚠ This project is discontinued due to lack of time, use it at your own risk ⚠

Fast-Discord logo
Thanks to Sour Dani for the logo

Fast-Discord

Fast-Discord image

Download Removed

  • Windows
  • MacOs
  • Linux

For Linux and MacOs, you need to install some dependencies :

  • Debian 11 or Ubuntu 21.04 or later :
$ sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qtmultimedia5-dev libqt5networkauth5-dev libqt5svg5-dev libqt5websockets5-dev libpthread-stubs0-dev libopus-dev libsodium-dev
  • Previous versions of Debian or Ubuntu:
$ sudo apt-get install qt5-default qtmultimedia5-dev libqt5networkauth5-dev libqt5svg5-dev libqt5websockets5-dev libpthread-stubs0-dev libopus-dev libsodium-dev
$ brew install qt5 libpthread-stubs libsodium opus

Fast-Discord is available for Windows (x64), Linux (x64) and MacOs (x64) for now.
You can compile Fast-Discord if it is not available for your operating system or your arch : Build and Run.

Get your Discord token

Go to https://discord.com/login without logging in
Press Ctrl+Shift+I to open the Web Developer Tools
Go to the Network tab

Press XHR

Now log in : network requests should appear

Open one of the request and search for the Authorization header in Request Headers (If it is not here, open an other request)

Copy the token next to "Authorization"

Build and Run

Dependencies

  • Qt5 (Widgets, Network, WebSockets, Multimedia, WebEngine)
  • Pthread
  • Opus
  • Sodium

Install the dependencies

On Debian 11 or Ubuntu 21.04 or later

$ sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qtmultimedia5-dev libqt5networkauth5-dev libqt5svg5-dev libqt5websockets5-dev libpthread-stubs0-dev libopus-dev libsodium-dev

On previous versions of Debian or Ubuntu

$ sudo apt-get install qt5-default qtmultimedia5-dev libqt5networkauth5-dev libqt5svg5-dev libqt5websockets5-dev libpthread-stubs0-dev libopus-dev libsodium-dev

On Debian/Ubuntu arm64

$ sudo apt-get install qtbase5-dev qtmultimedia5-dev libqt5networkauth5-dev libqt5svg5-dev libqt5websockets5-dev libpthread-stubs0-dev libopus-dev libsodium-dev

On Windows (with vcpkg) :

> vcpkg install qt5 qt5-websockets pthreads

On MacOS (with Homebrew) :

$ brew install qt5 libpthread-stubs libsodium opus

You will also need CMake in your system PATH (Minimum version : 3.0)

Build

In 'Fast-Discord/bin' folder :
On Windows :

cmake .. -DCMAKE_TOOLCHAIN_FILE=(path/to/)vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build . --config Release

Otherwise :

cmake .. 
cmake --build .

Run

The executable is in the 'Fast-Discord/bin' folder ;)

Contact

Fast-Discord's discord server : https://discord.gg/DezBvjrGve

Origins

The two main reasons that pushed me to create this project are: portability and client performance. One day I wanted to install Discord on a Raspberry Pi, but I was running Ubuntu with an ARM processor, and Discord doesn't provide a version for computers running Linux and ARM processors. And Discord is an application created with the Electron.js framework, so it uses a lot of resources, which is a shame for an application that you use in parallel with other applications most of the time.

Coding Conventions

If you want to contribute to this project, you must respect the coding conventions from Qt (https://wiki.qt.io/Coding_Conventions).

License

MIT License

Copyright (c) 2021 EnyoYoen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

fast-discord's People

Contributors

anoraktrend avatar brettdong avatar enyoyoen avatar loliconshik3 avatar relwi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fast-discord's Issues

Segmentation Fault when viewing any channel

I built Fast-Discord according to the instructions in README.md, using Homebrew for deps and cmake for compiling on macOS 13.0 22A380 arm64 (MacBook Pro M1 2020)

If I open a channel that has messages in it (empty channels do not seem to cause this problem), the program crashes with the following output:
[1] 90024 segmentation fault ./Fast-Discord

I launched Fast-Discord using ./Fast-Discord in the bin-folder.

Server list update

Added a new server via web or other client and it won't be updated in fast discord.

Doesn't support touch screens

Tested the latest version built from git on my pine64 PinePhone on Wayland. The UI doesn't scroll when you move your finger across it—it behaves like dragging a mouse, highlighting text. A speedy, efficient client like this would otherwise be extremely popular on Linux phones that have limited hardware resources.

Fast-Discord/src/ui/roundedimage.cpp:30:18: error: variable ‘QPainterPath path’ has initializer but incomplete type

[ 3%] Automatic MOC for target Fast-Discord
[ 3%] Built target Fast-Discord_autogen
Consolidate compiler generated dependencies of target Fast-Discord
[ 6%] Building CXX object CMakeFiles/Fast-Discord.dir/src/ui/roundedimage.cpp.o
/home/aldair/Fast-Discord/src/ui/roundedimage.cpp: In function ‘virtual void Ui::RoundedImage::paintEvent(QPaintEvent*)’:
/home/aldair/Fast-Discord/src/ui/roundedimage.cpp:30:18: error: variable ‘QPainterPath path’ has initializer but incomplete type
30 | QPainterPath path = QPainterPath();
| ^~~~
/home/aldair/Fast-Discord/src/ui/roundedimage.cpp:30:38: error: invalid use of incomplete type 'class QPainterPath'
30 | QPainterPath path = QPainterPath();
| ^
In file included from /usr/include/qt/QtGui/qbrush.h:49,
from /usr/include/qt/QtGui/qpalette.h:46,
from /usr/include/qt/QtWidgets/qwidget.h:48,
from /usr/include/qt/QtWidgets/qframe.h:44,
from /usr/include/qt/QtWidgets/qlabel.h:44,
from /usr/include/qt/QtWidgets/QLabel:1,
from /home/aldair/Fast-Discord/include/ui/roundedimage.h:4,
from /home/aldair/Fast-Discord/src/ui/roundedimage.cpp:1:
/usr/include/qt/QtGui/qmatrix.h:54:7: nota: forward declaration of ‘class QPainterPath’
54 | class QPainterPath;
| ^~~~~~~~~~~~
make[2]: *** [CMakeFiles/Fast-Discord.dir/build.make:482: CMakeFiles/Fast-Discord.dir/src/ui/roundedimage.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/Fast-Discord.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

No available builds/releases?

Hello,

where can I find a release? The download link in the readme does not work, it says it's expired. (for Windows).

Cheers

[Bug] "symbol lookup error"

Hello,

I'm experiencing the following error when running Fast-Discord on Ubuntu 22.04.1 :

./Fast-Discord: symbol lookup error: ./Fast-Discord: undefined symbol: _ZNSt28__atomic_futex_unsigned_base19_M_futex_notify_allEPj, version Qt_5

Thanks

Markdown is not parsed.

*Text like this* or _Text like this_ do not get parsed.

AUR: fast-discord-git r219.110de79-1

Could not create pixmap from res/images/svg/home-icon.svg

Could not create pixmap from res/images/svg/home-icon.svg
Could not create pixmap from res/images/svg/home-icon.svg
Could not create pixmap from res/images/svg/home-icon.svg
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
Could not create pixmap from res/images/svg/home-icon.svg
Could not create pixmap from res/images/svg/home-icon.svg
Could not create pixmap from res/images/svg/home-icon.svg
Could not create pixmap from res/images/svg/home-icon.svg
Could not create pixmap from res/images/svg/home-icon.svg
Could not create pixmap from res/images/svg/home-icon.svg
Could not create pixmap from res/images/svg/home-icon.svg
Could not create pixmap from res/images/svg/home-icon.svg
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap

QIODevice::write (QSslSocket): device not open

After compiling and trying to run Fast-Discord, this is the only output. The main window appears after the account selector, possibly because I configured in the past, but it's empty.

λ ./Fast-Discord
QIODevice::write (QSslSocket): device not open

EDIT:
OS: Archlinux
Equivalent packages of the ones mentioned in the readme are installed.

Discord custom profile picture cant be loaded

libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 537, resource id: 21098687, major code: 40 (TranslateCoords), minor code: 0
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap
libpng error: Read Error
QPixmap::scaled: Pixmap is a null pixmap

device not open SsLSocket

just installed via Aur

enter username and password.
enter token.
crash:

propsReply "Method \"GetAll\" with signature \"s\" on interface \"org.freedesktop.DBus.Properties\" doesn't exist\n"
nmReply "Method \"GetDevices\" with signature \"\" on interface \"org.freedesktop.NetworkManager\" doesn't exist\n"
"Object path cannot be empty"
QIODevice::write (QSslSocket): device not open```

Got error "`Qt_5.15' not found"

I use Ubuntu 20.04.5, and have installed the dependencies according to the instructions.
But when I execute Fast-Discord, I get an error:
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found

Can you give me a hint what to do?
Any help is highly appreciated.

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.