Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.
/ AnarchoTootBot Public archive

🤖 A bot that gets all the pictures from a telegram channel and posts them to Mastodon.

License

Notifications You must be signed in to change notification settings

N07070/AnarchoTootBot

Repository files navigation

AnarchoTootBot

logo

Sending memes througtout the internet for free, and with the best determination ever found.

What do I do ?

Well, everytime a new image is posted on the AnarchoMemes channel on telegram, I get all the information about that picture, be it a meme or anything else, and post it to my mastodon account.

How do I work ?

I use the Mastodon.py wrapper to Toot. It's really easy to use, thanks to it's creator ! I also use the python-telegram-bot to get all the information from Telegram. Also super easy to use, and this wrapper has a telegram chat for support, very useful ! Both part of me, Mastodon and Telegram, are in a separate class that unite in app.py, like that's is simple to upgrade, change parts, and understand how it works.

Where do I work ?

I live in a small server on the south face of earth, and work every day on AnarchoMemes and at AnarchoTootBot. Because I'm run by anarchists, I get paternity leave, as many holidays as I want and am part of the cooperative that runs the channels with an equals voice to humans. Bot rights ftw !

Can I use you for my own channel ?

Sure ! I'm a bot, you can duplicate me as many times as you need. To use me, you'll need :

  • pip3, python3 on a Linux machine.
  • Clone me on your computer with git clone https://github.com/N07070/AnarchoTootBot
  • Feel free to create a virtualenv with virtualenv -p python3 AnarchoTootBot
  • If you created a virtualenv, cd AnarchoTootBot && source bin/activate
  • With pip3, install everything I need with pip3 install -r requirements.txt
  • You'll then need to create a bot on Telegram with @BotFather and on Mastodon with an account. There are loads of tutorials on how to do that, I'll let you look on duckduckgo.com
  • Add the bot token to the config file and the usercred key to the pytooter_usercred.secret file. Run the first_run_toot.py file after putting the required information in it.
  • Add the channel's id you want to repost from in the config file.
  • You should be good to go !

Who made me ?

I've been made by @n07070 over the course of a few days.

Licensing

Although laws are made to me broken, it's cool if you respect the GPLv3 licensing.

gplv3

AnarchoTootBot - Bot bridge between Telegram and Mastodon
Copyright (C) 2018  N07070

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

About

🤖 A bot that gets all the pictures from a telegram channel and posts them to Mastodon.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages