-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New notifier: Discord + minor fixes #486
Conversation
Hi @lars-devs. |
Hi @Der-Henning, somehow I just found out, the test routine will fail with the example login data which isn't really suprising, sincen their invalid. I'm wonderin why the test of Telegram runs through, though, even with the catched exception of btw, I implemented formatting price, value, and rating to match localized conventions (de_DE: 1,50 EUR, en_US: 1.50 USD). Do You want me to create another PR or is including this into the current PR fine? |
Hi @lars-devs. |
Hi @Der-Henning, maybe there's a misunderstanding on my side. Do You run the The channel is set in line 332 in
I added information about it to the wiki. Also, could You please check the two other points I mentioned ( |
I'm running a cluster of three TGTG instances on different servers that each takes care of different weekdays to prevent rate limiting. To add an item to them, I need to connect via SSH three times. The telegram notifier already allows to add favorites, but there's still need to message three bots. That's why I created the notifier for Discord, so these three instances can join a Discord server at the same time and listen to commands for adding favorites - either by having different command prefixes, or all the same, so there's only need to type in the command one single time.
The bot features all the Telegram commands with exception of reservation functionality. This may be included in the future. With
!gettoken
and!getinfo
(prefix in my case is an exclamation mark), it's possible to show connection information.Note about test warnings: I implemented
test_discord()
intest_notifiers.py
. Sincediscord.py
imports moduleaudioop
which is about to be deprecated in later Python releases, this warning appears:If there's a way to avoid this warning, please let me know.
Pull Request Checklist
make test
make lint
make images
make executable