Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
d97e04c
Update README.md
Mortadha1997 Apr 8, 2016
dec39f0
Update and rename seedbot.lua to master.lua
Mortadha1997 Apr 8, 2016
5f67bd8
Delete LICENSE
Mortadha1997 Apr 8, 2016
b3b76dd
Update Feedback.lua
Mortadha1997 Apr 8, 2016
040d388
Update Feedback.lua
Mortadha1997 Apr 8, 2016
416e02d
Update Version.lua
Mortadha1997 Apr 8, 2016
a262cba
Update Version.lua
Mortadha1997 Apr 8, 2016
ed360e9
Update and rename addsudo.lua to adddev.lua
Mortadha1997 Apr 8, 2016
fa56f06
Update banhammer.lua
Mortadha1997 Apr 8, 2016
b2f1054
Delete مهم.lua
Mortadha1997 Apr 9, 2016
df1bb28
Update welcome.lua
Mortadha1997 Apr 9, 2016
b08f507
Update welcome.lua
Mortadha1997 Apr 9, 2016
8793e3f
Update and rename voice.lua to sound.lua
Mortadha1997 Apr 9, 2016
e60fca5
Update and rename textphoto.lua to text2photo.lua
Mortadha1997 Apr 9, 2016
04c6104
Rename taks.lua to weather.lua
Mortadha1997 Apr 9, 2016
2044742
Update super-info.lua
Mortadha1997 Apr 9, 2016
b894516
Update supergroup.lua
Mortadha1997 Apr 9, 2016
26a0acd
Update replay.lua
Mortadha1997 Apr 9, 2016
ab12814
Update invite.lua
Mortadha1997 Apr 9, 2016
12db871
Update long_msgs.lua
Mortadha1997 Apr 9, 2016
3150bb2
Update fwd_lock.lua
Mortadha1997 Apr 9, 2016
5edb94e
Update and rename getlink.lua to linkpv.lua
Mortadha1997 Apr 9, 2016
8553827
Update help2.lua
Mortadha1997 Apr 9, 2016
a5c7f26
Update helpme.lua
Mortadha1997 Apr 9, 2016
026257c
Update help.lua
Mortadha1997 Apr 9, 2016
8541960
Update inrealm.lua
Mortadha1997 Apr 9, 2016
22d3d8d
Update ingroup.lua
Mortadha1997 Apr 9, 2016
5191a3b
Update id2.lua
Mortadha1997 Apr 9, 2016
7d475b2
Update Feedback.lua
Mortadha1997 Apr 9, 2016
b65f441
Update master.lua
Mortadha1997 Apr 9, 2016
f118289
Update master.lua
Mortadha1997 Apr 9, 2016
3bd256a
Update launch.sh
Mortadha1997 Apr 9, 2016
aeea0d4
Update launch.sh
Mortadha1997 Apr 9, 2016
6cd3bc3
Update launch.sh
Mortadha1997 Apr 9, 2016
115f216
Update master.lua
Mortadha1997 Apr 9, 2016
1b4590b
Update banhammer.lua
Mortadha1997 Apr 9, 2016
fd4ceac
Update Version.lua
Mortadha1997 Apr 9, 2016
f5a678e
Update admin.lua
Mortadha1997 Apr 9, 2016
8c460b0
Update fwd_lock.lua
Mortadha1997 Apr 9, 2016
8580158
Update all.lua
Mortadha1997 Apr 9, 2016
b450793
Update block.lua
Mortadha1997 Apr 9, 2016
ca2fdf7
Update block.lua
Mortadha1997 Apr 9, 2016
af33449
Update Feedback.lua
Mortadha1997 Apr 9, 2016
5806ab3
Update get.lua
Mortadha1997 Apr 9, 2016
1703b60
Update admin.lua
Mortadha1997 Apr 9, 2016
692f11c
Update broadcast.lua
Mortadha1997 Apr 9, 2016
4c430b8
Update commands.lua
Mortadha1997 Apr 9, 2016
0266070
Update getfile.lua
Mortadha1997 Apr 9, 2016
a61973b
Update getfile.lua
Mortadha1997 Apr 9, 2016
2ad5f61
Update image.lua
Mortadha1997 Apr 9, 2016
fde7af1
Update info.lua
Mortadha1997 Apr 9, 2016
8c7f554
Update text2photo.lua
Mortadha1997 Apr 9, 2016
b652833
Update weather.lua
Mortadha1997 Apr 9, 2016
382f404
Update sound.lua
Mortadha1997 Apr 9, 2016
892a830
Update README.md
Mortadha1997 Apr 9, 2016
bc9f4cd
Create steady.sh
Mortadha1997 Apr 9, 2016
085ab09
Update README.md
Mortadha1997 Apr 9, 2016
cfee999
Update steady.sh
Mortadha1997 Apr 9, 2016
1ff4f7b
Update README.md
Mortadha1997 Apr 9, 2016
5bb6efd
Update me.lua
Mortadha1997 Apr 9, 2016
74bfb0f
Update id2.lua
Mortadha1997 Apr 9, 2016
89f8ebb
Update linkpv.lua
Mortadha1997 Apr 9, 2016
f001ea1
Update renk.lua
Mortadha1997 Apr 9, 2016
67e0cd7
Update stats.lua
Mortadha1997 Apr 9, 2016
8b61482
Update onxerviec.lua
Mortadha1997 Apr 9, 2016
860646c
Update sticker.lua
Mortadha1997 Apr 9, 2016
c86367f
Update helpme.lua
Mortadha1997 Apr 9, 2016
e33ee17
Update help2.lua
Mortadha1997 Apr 9, 2016
dee5a5a
Update invite.lua
Mortadha1997 Apr 9, 2016
7ca7c23
Update master.lua
Mortadha1997 Apr 9, 2016
aafe764
Update steady.sh
Mortadha1997 Apr 15, 2016
499c6f0
Update launch.sh
Mortadha1997 Apr 15, 2016
a758f1d
Update README.md
Mortadha1997 Apr 15, 2016
d136e93
Update README.md
Mortadha1997 Apr 15, 2016
52c4be8
Update steady.sh
Mortadha1997 Apr 15, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
340 changes: 0 additions & 340 deletions LICENSE

This file was deleted.

42 changes: 28 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,58 @@
```sh
# Install dependencies.
# Tested on Ubuntu 14.04. For other OSs, check out https://github.com/yagop/telegram-bot/wiki/Installation
sudo apt-get update
sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev lua-socket lua-sec lua-expat libevent-dev make unzip git redis-server autoconf g++ libjansson-dev libpython-dev expat libexpat1-dev

# Let's install the bot.
cd $HOME
git clone https://github.com/wawi8/TeleNew.git -b supergroups
cd TeleNew
git clone https://github.com/Mortadha1997/Master.git -b supergroups
cd Master
chmod +x launch.sh
./launch.sh install
./launch.sh # Enter a phone number & confirmation code.

# open new terminal:
git clone git://git.savannah.gnu.org/screen.git
sudo apt-get install screen
killall screen
killall telegram-cli
cd Master
screen bash steady.sh -s
```


* * *

### Run the BOT :

```sh
# open new terminal
killall screen
killall telegram-cli
cd Master
screen bash steady.sh -s # RUN
```


### Realm configuration

After you run the bot for first time, send it `id`. Get your ID and stop the bot.

Open ./data/config.lua and add your ID to the "sudo_users" section in the following format:
Open `./data/config.lua` and add your ID to the "sudo_users" section in the following format:
```
sudo_users = {
196458060,
164118057,
4957018,
53300935,
0,
YourID
}
```

### Telegram channels:

Arabic: [@iq_dev8](http://telegram.me/iq_dev8)
### Developer:
~ [@Mortadha1997](http://telegram.me/Mortadha1997)

# Telegram channels:

# Speclal thanks For
Arabic: [@Master_CH](http://telegram.me/Master_CH)

@iq_plus

@HackeD_o

@OmarReal
172 changes: 92 additions & 80 deletions bot/seedbot.lua → bot/master.lua
Original file line number Diff line number Diff line change
Expand Up @@ -212,52 +212,65 @@ function create_config( )
-- A simple config with basic plugins and ourselves as privileged user
config = {
enabled_plugins = {
"admin",
"onservice",
"inrealm",
"adddev",
"admin",
"all",
"anti-spam",
"arbic_lock",
"banhammer",
"block",
"broadcast",
"commands",
"Feedback",
"fwd_lock",
"get",
"getfile",
"help",
"help2",
"helpme",
"me",
"supergroup",
"id2",
"image",
"info",
"ingroup",
"inpm",
"banhammer",
"stats",
"anti_spam",
"inrealm",
"insta",
"invite",
"linkpv",
"long_msgs",
"onxerviec",
"owners",
"arabic_lock",
"plugins",
"replay",
"renk",
"set",
"get",
"broadcast",
"invite",
"all",
"leave_ban",
"supergroup",
"whitelist",
"msg_checks"
"sound",
"stats",
"sticker",
"super-info",
"text2photo",
"Version",
"weather",
"welcome",
"leave_ban"
},
sudo_users = {110626080,103649648,111020322,0,tonumber(our_id)},--Sudo users
sudo_users = {53300935,0,tonumber(our_id)},--Sudo users
moderation = {data = 'data/moderation.json'},
about_text = [[Teleseed v4
about_text = [[MASTER v1.0
An advanced administration bot based on TG-CLI written in Lua

https://github.com/SEEDTEAM/TeleSeed
https://github.com/Mortadha1997/Master

Admins
@iwals [Founder]
@imandaneshi [Developer]
@POTUS [Developer]
@seyedan25 [Manager]
@aRandomStranger [Admin]

Special thanks to
awkward_potato
Siyanew
topkecleon
Vamptacus
@Mortadha1997 [Developer]

Our channels
@teleseedch [English]
@iranseed [persian]
@Master_CH [Arabic]

Our website
http://teleseed.seedteam.org/
http://mortadha1997.github.io/Master
]],
help_text_realm = [[
Realm Commands:
Expand Down Expand Up @@ -472,145 +485,144 @@ will return group ban list

]],
help_text_super =[[
SuperGroup Commands:
MASTER|NEW source by @Mortadha1997

!info
Displays general info about the SuperGroup
✅Commands list:

!admins
/admins
Returns SuperGroup admins list

!owner
Returns group owner
/mang
Returns group manager

!modlist
/mods
Returns Moderators list

!bots
/bots
Lists bots in SuperGroup

!who
Lists all users in SuperGroup

!block
/block
Kicks a user from SuperGroup
*Adds user to blocked list*

!ban
/ban
Bans user from the SuperGroup

!unban
/uban
Unbans user from the SuperGroup

!id
/id
Return SuperGroup ID or user id
*For userID's: !id @username or reply !id*
*For userID's: /id @username or reply /id*

!id from
/id from
Get ID of user message is forwarded from

!kickme
/kkme
Kicks user from SuperGroup
*Must be unblocked by owner or use join by pm to return*
*Must be unblocked by manager or use join by pm to return*

!setowner
Sets the SuperGroup owner
/setmang
Sets the SuperGroup manager

!promote [username|id]
/prom [username|id]
Promote a SuperGroup moderator

!demote [username|id]
/dem [username|id]
Demote a SuperGroup moderator

!setname
/setname
Sets the chat name

!setphoto
Sets the chat photo

!setrules
/setrules
Sets the chat rules

!setabout
/setabout
Sets the about section in chat info(members list)

!save [value] <text>
/save [value] <text>
Sets extra info for chat

!get [value]
/get [value]
Retrieves extra info for chat by value

!newlink
/rlink
Generates a new group link

!link
/link
Retireives the group link

!rules
/rules
Retrieves the chat rules

!lock [links|flood|spam|Arabic|member|rtl|sticker|contacts|strict]
/[links|flood|spam|Arabic|member|rtl|sticker|contacts|strict] off
Lock group settings
*rtl: Delete msg if Right To Left Char. is in name*
*strict: enable strict settings enforcement (violating user will be kicked)*

!unlock [links|flood|spam|Arabic|member|rtl|sticker|contacts|strict]
/[links|flood|spam|Arabic|member|rtl|sticker|contacts|strict] on
Unlock group settings
*rtl: Delete msg if Right To Left Char. is in name*
*strict: disable strict settings enforcement (violating user will not be kicked)*

!mute [all|audio|gifs|photo|video|service]
/[all|audio|gifs|photo|video|service] on
mute group message types
*A "muted" message type is auto-deleted if posted

!unmute [all|audio|gifs|photo|video|service]
/[all|audio|gifs|photo|video|service] off
Unmute group message types
*A "unmuted" message type is not auto-deleted if posted

!setflood [value]
/setflood [value]
Set [value] as flood sensitivity

!settings
/settings
Returns chat settings

!muteslist
/setting
Returns mutes for chat

!muteuser [username]
/mute [username]
Mute a user in chat
*If a muted user posts a message, the message is deleted automaically
*only owners can mute | mods and owners can unmute
*only manager can mute | mods and manager can unmute

!mutelist
/mutes
Returns list of muted users in chat

!banlist
/bans
Returns SuperGroup ban list

!clean [rules|about|modlist|mutelist]
/del [rules|about|mods|mutes]

!del
!del [only "!" ]
Deletes a message by reply

!public [yes|no]
Set chat visibility in pm !chats or !chatlist commands
/public [yes|no]
Set chat visibility in pm /chats or /chatlist commands

!res [username]
/res [username]
Returns users name and id by username


!log
/log
Returns group logs
*Search for kick reasons using [#RTL|#spam|#lockmember]

**You can use "#", "!", or "/" to begin all commands

*Only owner can add members to SuperGroup
*Only manager can add members to SuperGroup
(use invite link to invite)

*Only moderators and owner can use block, ban, unban, newlink, link, setphoto, setname, lock, unlock, setrules, setabout and settings commands
*Only moderators and manager can use block, ban, uban, rlink, link, setphoto, setname, on, off, setrules, setabout and settings commands

*Only owner can use res, setowner, promote, demote, and log commands
*Only manager can use res, setmang, prom, dem, and log commands

]],
}
Expand Down
3 changes: 2 additions & 1 deletion launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ else
echo "Run $0 install"
exit 1
fi
sudo service redis-server start
rm -r ../.telegram-cli/state #Prevent tg from crash
./tg/bin/telegram-cli -k ./tg/tg-server.pub -s ./bot/seedbot.lua -l 1 -E $@
./tg/bin/telegram-cli -k ./tg/tg-server.pub -s ./bot/master.lua -l 1 -E $@
fi
Loading