spottedmi / TelloBeep

Tellonym bot for automating instagram spotted profiles.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TelloBeep

Python bot for instagram spotted automation.

Bez nazwy

screenshot of onefetch tool

What is it?

TelloBeep is python bot which scrapes tellonym webpage, creates image and publishes it on instagram. Also notifications are send on discord channel. All data is stored in sqlite. Bot has built in censorship which helps in keeping page "clean". Up to now you can manage bot with http page made in flask.

Why?

We have created this bot because most of our school's spotteds died out because admins laziniess. Due lack of time, bot helps to create community with as small amount of time as it is possible.

How to run it

#download repo and requirements
git clone https://github.com/gl00man/TelloBeep
pip3 install -r requirements.txt

#customization
*customize config.json*
*customize swears_list.txt*
pyton3 init.py -l <admin username> -p <admin password>

#and run bot
python3 run.py

Customization

json file explained

{
    "AUTORUN" = use protection against spamming,
    "BAD_WORDS" = file location of censorship key file,
    "LOG_FILE" = file location of log file,
    "CAPTION" = post content on instagram,
    "LOGIN_TELLONYM" = tellonym login,
    "PASSWORD_TELLONYM": tellonym password,
    "LOGIN_INSTAGRAM": instagram login,
    "PASSWORD_INSTAGRAM": instagram password,
    "TEXT_footer": footer added to the generated post,
    "TIMEZONE": timezone add/substract hours,
    "colorBackground": list of colors in hex (e.g. ["#fafafa", "2a4a6a"]),
    "colorText": font color,
    "extension": generated image extension,
    "font_footer_name": file/name of font in footer,
    "font_footer_size": font size of footer,
    "footer_position_ratio": footer position ration ,
    "fontname": file/name of font in text main text,
    "fontsize": fontsize of content,
    "footer_height": height of footer,
    "header_position_ratio": footer position ratio,
    "header_font_size": fontsize of header,
    "POST_RATIO_WARNING": send warning when count of posts is equal,
    "POST_RATIO_ALERT": stop sending posts on instagram when ratio is higher or equal,
    "image_path": logo path/name
    "image_size": [
        height of logo,
        width of logo
    ],
    "logo_X_ratio":location of logo on image,
    "logo_Y_ratio":location of logo on image,
    "insta_res": [
        output immage height,
        output immage width
    ],
    "margin": { = margins of image
        "top": ,
        "right": ,
        "bottom": ,
        "left": 
    },
    "out_image_path": path to direcotry where to save images,
    "out_image_path_BACKUP": if first direcotry not found, try to save here,
    "outline_thickness": outline thickness of image(default 0),
    "swears_list": add list of badwords,
    "thumb_path": path where to save thumbnails ,
    "thumb_res": [ thumbnails resolution
        height,
        width
    ],
    "token_file_tellonym": token file tellonym,
    "token_questionmi": questionimi token (string),
    "questionmi_api_base_url": base url to a questionimi ,
    "word_break": count of words per line,
    "DISCORD_CHANNEL_ID": id of channel where to send notifications,
    "DISCORD_TOKEN":discord bot token
}

Authors

RandomGuy90

discord: RandomGuy90#5264

glooman

Contributions

Have you found a bug, or just want to improve my retarded code?

Feel free to use and edit this bot. You can easily create pull requests and open new issues. We really encorauge you to contact and develop this repo with us!

How does it look like?

some of automatically created images:

image

image

20220210170342_4907981514

20220426215730_5290619073

image

automated blocade caused by too many posts

image

discord notifications image

logs: image

admin pannel: image

Pasted image 20220426231043 1

About

Tellonym bot for automating instagram spotted profiles.

License:MIT License


Languages

Language:Python 82.5%Language:HTML 6.5%Language:JavaScript 5.9%Language:CSS 4.4%Language:Dockerfile 0.7%