mirror of
https://github.com/pseudbot/pseudbot.git
synced 2026-05-26 14:05:07 +00:00
95c8726cbb
On startup, the code now initializes MEDIA with suitable media files found in the `media` directory that satisfy Twitter's media file requirements. The `filetype` Python module has been added as a dependency to ensure that files in `media` are what they claim to be. In the bot class I added a new _parse_mention method, broke up the pasta chain builder method, and added a new recursive _tweet_media method. The _parse_mention method had to have some `stupid_emoji` hackery thanks to the way the 🖼 emoji gets encoded in some tweets. A new fetch-media script has been added along with a new util function named `download_tweet_media` See media/README.md for more information on how to use the newly-added multimedia superpowers.
24 lines
571 B
Python
24 lines
571 B
Python
from setuptools import setup
|
|
|
|
try:
|
|
from pip import main as pipmain
|
|
except ImportError:
|
|
from pip._internal import main as pipmain
|
|
|
|
# install_requires sucks, I don't know why and I really
|
|
# don't care, so I do this:
|
|
pipmain(["install", "-r", "requirements.txt"])
|
|
|
|
scripts = ["scripts/pseudbot", "scripts/fetch-media"]
|
|
|
|
setup(
|
|
name="pseudbot",
|
|
version="0.1",
|
|
author="Andrew Rogers",
|
|
description="Rick and Morty copypasta bot",
|
|
author_email="tuxlovesyou@gmail.com",
|
|
packages=["pseudbot"],
|
|
include_package_data=True,
|
|
scripts=scripts,
|
|
)
|