a telegram bot for remote controlling a server
it is the system-admins's assistant telegram bot!
this is a pretty straightforward guide for setting up your own babaee robot.
config.py.default
into config.py
.config.py
.python3 babaee.py
.git clone 'https://github.com/ekm507/babaee.git'
config.py.default
into config.py
file.cp config.py.default config.py
config.py
filethere are two ways to run this robot.
when run by non-root user, commands will be run as your user.
when run by root user, you can define users for each person interacting with robot. you may also give users root access for running commands.
thus, the way you run the robot, you need to configure it differently.
edit config.py
file.
edit robot_token
in config.py
file set robot token
robot_token = "token you get from botfather"
edit admins_chat_id_list
.
add your chat_id
(you can add several ones)
as an example:
# chat id of admins
admins_chat_id_list = [
12121212,
13131313,
# integer
]
edit forward_chat_id_list
it is possible to send a log from users commands to a telegram user.
for example:
# a list of chat id. bot will forward all incoming messages to these users.
forward_chat_id_list = [
12121212,
# integers
]
edit config.py
file.
edit robot_token
in config.py
file set robot token
robot_token = "token you get from botfather"
edit admins_chat_id_list
.
add your chat_id
(you can add several ones)
as an example:
# chat id of admins
admins_chat_id_list = [
12121212,
13131313,
# integer
]
edit chatd_users
dict.
each chat_id must be assigned to a user on your machine.
as an example:
chatid_users = {
12121212:'erfan',
13131313:'funny-user'
# integer:string
}
edit sudoers_chatid
list
it is possible to give a user root access.
for example if you want to let user 12121212 be able ro run commands as root:"
sudoers_chatid = [
12121212,
#integer
]
edit forward_chat_id_list
it is possible to send a log from users commands to a telegram user, for instance root user's telegram.
for example:
# a list of chat id. bot will forward all incoming messages to these users.
forward_chat_id_list = [
12121212,
# integers
]
run the bot using python3
python3 babaee.py
to use the bot, simply type linux commands in it.
however there are some special commands you can use.
آراسته: تبدیل متن فارسی به هنر اسکی
a telegram bot for converting links to commercial online services like Youtube, Soundcloud, Instagram, Twitter,… into a privacy-respecting alternative.
قلم پیکسلی فارسی عرفان. erfan pixel Persian/Arabic font
یک ترجمه آزاد فارسی از کتاب دائو ده جینگ
a python based calculator in shell
a webserver written in python
simulation of a full digital telecommunication system
Generate music and sound effects by python and mathematics (digital signal processing)