Jump to content


Photo

Telemby - Emby Telegram Bot

bot telegram docker python

  • Please log in to reply
15 replies to this topic

#1 matty87a OFFLINE  

matty87a

    Advanced Member

  • Members
  • 43 posts
  • Local time: 05:45 AM

Posted 14 June 2019 - 10:58 AM

Hi,

 

Put this together for my own use - its a bit rough around the edges but figured i'd throw it out here should anyone want to give it a whirl!

 

Docker Hub: https://hub.docker.c...atty87a/telemby

GitHub: https://github.com/matty87a/telemby


Edited by matty87a, 14 June 2019 - 10:59 AM.

  • guilhermydg.a and BillOatman like this

#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 140105 posts
  • Local time: 11:45 PM

Posted 14 June 2019 - 11:34 AM

Cool thanks !

#3 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 294 posts
  • Local time: 04:45 AM

Posted 15 June 2019 - 09:38 AM

Subscribed, Installing, thanks



#4 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 294 posts
  • Local time: 04:45 AM

Posted 16 June 2019 - 05:26 AM

This is really good, I'm impressed. It's something I will use for instant commands and Telegram is the only instant messenger I use these days. You should also add an command option to restart Emby.

#5 matty87a OFFLINE  

matty87a

    Advanced Member

  • Members
  • 43 posts
  • Local time: 05:45 AM

Posted 16 June 2019 - 05:53 AM

Funny you should say that, it's already in the code I just forgot to add it to the help text as it's literally a fire and forget atm.

Try /restartserver and it should work already.

There's no status polling or anything though so it will be a case of waiting and firing /status a few times till it comes back.

#6 dual-o OFFLINE  

dual-o

    Member

  • Members
  • 29 posts
  • Local time: 05:45 AM

Posted 09 July 2019 - 06:10 PM

Hello,

 

is there a way to install the plugin without docker?

I would like to have my debian server as clean as possible


  • Davide likes this

#7 matty87a OFFLINE  

matty87a

    Advanced Member

  • Members
  • 43 posts
  • Local time: 05:45 AM

Posted 11 July 2019 - 06:41 AM

Hello,

 

is there a way to install the plugin without docker?

I would like to have my debian server as clean as possible

 

 

yup of course you can, although I'd argue that the container would keep it cleaner to be honest.

 

You'll need to install Python3.

 

Then install the requirements at https://github.com/m...equirements.txt via pip3.

 

Once that's done you can set up the config and run the .py file (both located here: https://github.com/m...tree/master/app)

 

It may also be worth wrapping the .py file in a systemd file for easier process management - e.g: https://tecadmin.net...-using-systemd/

 

Hope that helps!



#8 guilhermydg.a OFFLINE  

guilhermydg.a

    Newbie

  • Members
  • 3 posts

Posted 12 July 2019 - 08:19 AM

Very cool, how do I install on windows? Can you help me?


  • Davide likes this

#9 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 294 posts
  • Local time: 04:45 AM

Posted 12 July 2019 - 05:27 PM

Hello,

 

is there a way to install the plugin without docker?

I would like to have my debian server as clean as possible

 

Sorry OT

 

I don't think there's a cleaner way to do software than docker containers and docker-compose. I have about 20 containers on my dedi server. The docker host only has docker installed (and an rclone gsuite mount) no other software and because the software is all in containers it is completely OS neutral and can be easily moved to another host (move from linux to windows even) by just moving the config volumes and running docker-compose on the new host


Edited by Pog22, 12 July 2019 - 05:28 PM.


#10 matty87a OFFLINE  

matty87a

    Advanced Member

  • Members
  • 43 posts
  • Local time: 05:45 AM

Posted 13 July 2019 - 06:40 AM

Very cool, how do I install on windows? Can you help me?



Hi,

I'm not a windows user, but I'm fairly sure you can just use the same docker image?

#11 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 294 posts
  • Local time: 04:45 AM

Posted 16 July 2019 - 12:21 PM

Is there any way i could get this to post the output from /status to a channel on a daily schedule?



#12 matty87a OFFLINE  

matty87a

    Advanced Member

  • Members
  • 43 posts
  • Local time: 05:45 AM

Posted 16 July 2019 - 03:39 PM

Is there any way i could get this to post the output from /status to a channel on a daily schedule?

 

Hi,

 

For that the easiest thing would be a cron job firing a simplified script, knocked one up for you:

 

script: https://github.com/m.../send_status.py

 

rough guide: https://github.com/m.../SEND_STATUS.md

 

It's a bit rough around the edges as I've only just put it together, so your mileage may vary.

 

Afraid I won't be able to help too much with it outside of the above, but its worked fine for me when I've tested it. 

 

Hope it helps!



#13 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 294 posts
  • Local time: 04:45 AM

Posted 16 July 2019 - 03:42 PM

Hi,

For that the easiest thing would be a cron job firing a simplified script, knocked one up for you:

script: https://github.com/m.../send_status.py

rough guide: https://github.com/m.../SEND_STATUS.md

It's a bit rough around the edges as I've only just put it together, so your mileage may vary.

Afraid I won't be able to help too much with it outside of the above, but its worked fine for me when I've tested it.

Hope it helps!


That is super thanks.

#14 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 294 posts
  • Local time: 04:45 AM

Posted 16 July 2019 - 04:50 PM

Ah, I have this working many thanks, but I'd like the info at the end of status movies episodes etc. sorry for being a right pain  :D



#15 matty87a OFFLINE  

matty87a

    Advanced Member

  • Members
  • 43 posts
  • Local time: 05:45 AM

Posted 16 July 2019 - 06:37 PM

Ah, I have this working many thanks, but I'd like the info at the end of status movies episodes etc. sorry for being a right pain  :D

 

updated the script - while i was there I managed to remove the guide but i'll add that back at some point in case anyone else needs it.

 

https://github.com/m.../send_status.py

 

If anything else needs adding in you'll have to adapt it from the main bot scripts  ;)


Edited by matty87a, 17 July 2019 - 03:38 AM.


#16 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 294 posts
  • Local time: 04:45 AM

Posted 17 July 2019 - 05:19 AM

Thank you kindly







Also tagged with one or more of these keywords: bot, telegram, docker, python

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users