Sending memes througtout the internet for free, and with the best determination ever found.
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.
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.
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 !
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 thefirst_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 !
I've been made by @n07070 over the course of a few days.
Although laws are made to me broken, it's cool if you respect the GPLv3 licensing.
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/>.