https://github.com/vycktorstark/tetasrobot
Project N.S.F.W. Not Safe For Work contains porn
https://github.com/vycktorstark/tetasrobot
bot-webhook nsfw telegram-bot telegram-bot-api telegrambot
Last synced: 28 days ago
JSON representation
Project N.S.F.W. Not Safe For Work contains porn
- Host: GitHub
- URL: https://github.com/vycktorstark/tetasrobot
- Owner: VycktorStark
- License: agpl-3.0
- Created: 2020-04-12T03:47:54.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-19T16:22:07.000Z (about 4 years ago)
- Last Synced: 2025-02-04T22:41:20.144Z (3 months ago)
- Topics: bot-webhook, nsfw, telegram-bot, telegram-bot-api, telegrambot
- Language: Python
- Homepage: https://t.me/Tetasrobot
- Size: 37.1 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
* * *
_ _ ____ _____ __ __
| \ | | / __| | ___| \ \ / /
| \| | \__ \ | |_ \ \ /\ / /
| |\ | __) | | _| \ V V /
|_| \_| |____/ |_| \_/\_/* * *
## Getting Started
These instructions will provide you with a copy of the project and show you how to get started using it for development and testing purposes.
## Configuring the bot to run on the terminal
You must have your machine up to date and have Python 3 installed, as well as some modules, such as: flask and requests, and if you don't have it, you'll need to install it this way here:
```
# Tested on Ubuntu 14.04, 15.04 and 16.04, Debian 7, Linux Mint 17.2
$ sudo apt-get update && sudo apt-get upgrade
$ sudo apt install python3 && python3-pip
$ sudo pip3 install flask && requests
```
With everything installed, we will clone the repository like this:```
$ git clone https://github.com/VycktorStark/tetasrobot.git
```With the repository installed, you should observe your bot's settings via [BotFather](http://telegram.me/BotFather), if you don't have one you need to create (more information on the [Bots official FAQ page](https://core.telegram.org/bots/faq#what-messages-will-my-bot-get))
> Make sure privacy is turned off. Send `/setprivacy` to [BotFather](http://telegram.me/BotFather), to check the current configuration.
After performing the check, with a text editor, make the following changes to the "settings.py" file:
> • Defines the language of the bot in "LN", which should only contain two characters. (example: LN = "en")> • Also define your bot's token in "SECRET_KEY", (example: SECRET_KEY = "12345669: JHIhdsjEOJoEIOjoih7hjih")
## Boot process
- To start the bot, run: sudo ./run.py
- To stop the bot, press Ctrl + C.
You can also start the bot with python3 run.pyNote: the project is via webhook, that is, you need a way to receive the request, I guide ngrok provisionally (soon I will put a function to switch between webhook and polling)
## Configuring the bot to run on heroku
Click the button below and configure your language, also setting your bot's token.
[](https://heroku.com/deploy)
ready, now go to: https://projectname.com.br/start
Note: replace "project name" with the name of your project
Only that, the project will already be working.