Can be found as @Romeo1Bot on Telegram, or ROMEO.
- x -|│ “ Superb Group Moderator... ” │| - x -
<
ROMEO-3.0 IS A SUPERB GROUP MODERATOR BOT FOR TELEGRAM GROUPS, IT HELPS ADMINS/OWNERS TO MANAGE THEIR GROUPS EASILY.....
# Steps to deploy on Heroku!!
Fill in all the details, Deploy!
Now go to https://dashboard.heroku.com/apps/(app-name)/resources ( Replace (app-name) with your app name )
REMEMBER: Turn on worker dyno (Don't worry It's free :D) & Webhook
Now send the bot /start, If it doesn't respond go to https://dashboard.heroku.com/apps/(app-name)/settings and remove webhook and port.
# Steps to self Host!!
Please make sure to use python3.6, as I cannot guarantee everything will work as expected on older Python versions! This is because markdown parsing is done by iterating through a dict, which is ordered by default in 3.6.
There are two possible ways of configuring your bot: a config.py file, or ENV variables.
The preferred version is to use a config.py
file, as it makes it easier to see all your settings grouped together.
This file should be placed in your SaitamaRobot
folder, alongside the __main__.py
file.
This is where your bot token will be loaded from, as well as your database URI (if you're using a database), and most of
your other settings.
It is recommended to import sample_config and extend the Config class, as this will ensure your config contains all defaults set in the sample_config, hence making it easier to upgrade.
An example for config.py
file could be:
from SaitamaRobot.sample_config import Config
class Development(Config):
OWNER_ID = 1078841825 # your telegram ID
OWNER_USERNAME = "Warning_MadBoy_is_Here" # your telegram username
API_KEY = "your bot api key" # your api key, as provided by the @botfather
SQLALCHEMY_DATABASE_URI = 'postgresql:https://username:password@localhost:5432/database' # sample db credentials
JOIN_LOGGER = '-1234567890' # some group chat that your bot is a member of
USE_JOIN_LOGGER = True
DRAGONS = [1107922726] # List of id's for users which have sudo access to the bot.
LOAD = []
NO_LOAD = ['translation']
If you can't have a config.py file (Ex - on Heroku), it is also possible to use environment variables. So just go and read the config sample file.