From 5c3c94abbdd96518c2dba83316425e2a0207cb19 Mon Sep 17 00:00:00 2001 From: Rondoozle Date: Mon, 14 Dec 2015 15:05:01 -0500 Subject: [PATCH 1/5] Update README.md Added "Table of Contents" Section. --- README.md | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/README.md b/README.md index f1a40d6..bfefb31 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,66 @@ * **Arabic lock** * **And ...** +**Table of Contents** +- [TeleSeed](#) +- [Features](#) +- [Commands](#) + - [Admins commands](#) + - [Group creation](#) + - [Add or remove groups](#) + - [Leaving](#) + - [Everything about groups](#) + - [Setting description in realm](#) + - [Setting Group name in realm](#) + - [Setting rules in realm](#) + - [lock groups name|flood|photo|member in realm](#) + - [Unlock groups name|flood|photo|member](#) + - [Group setting in realm](#) + - [Add admin](#) + - [Remove admin](#) + - [Admins|group list in realm](#) + - [Broadcast](#) + - [Global ban commands](#) + - [Set group owner](#) + - [Bot stats](#) + - [owners and mods commands](#) + - [Hammer](#) + - [group name|member|arabic|flood|bots lock](#) + - [group name|member|arabic|flood|bots unlock](#) + - [Group modlist|rules|about|member clean](#) + - [Set groups rules|about](#) + - [Setting or changing group owner](#) + - [Setting or changing group photo](#) + - [Changing Group name](#) + - [Group link](#) + - [Promote and demote mods](#) + - [Resolve username](#) + - [Flood sensitivity](#) + - [Group rules and about](#) + - [Group settings](#) + - [modlist](#) + - [Help](#) + - [Owner](#) + - [Save and get](#) + - [Id](#) + - [group stats](#) + - [member list](#) + - [in private commands](#) + - [Hammer](#) + - [cleaning](#) + - [setting flood sensitivity](#) + - [lock groups member|name](#) + - [unlock groups member|name](#) + - [Group link](#) + - [change name|rules|name](#) + - [Group log](#) + - [Join](#) +- [Installation](#) + - [One command](#) + - [Realm configuration](#) +- [Support and development](#) +- [Special thanks to](#) +- [Our team !](#) # Commands From 9d75a5f2904ee6f04a41cea2e22dd76252e79730 Mon Sep 17 00:00:00 2001 From: Rondoozle Date: Mon, 14 Dec 2015 17:55:26 -0500 Subject: [PATCH 2/5] Update README.md --- README.md | 334 +++++++++++++++++++++++++++--------------------------- 1 file changed, 167 insertions(+), 167 deletions(-) diff --git a/README.md b/README.md index bfefb31..d771486 100644 --- a/README.md +++ b/README.md @@ -18,155 +18,155 @@ * **And ...** **Table of Contents** -- [TeleSeed](#) -- [Features](#) -- [Commands](#) - - [Admins commands](#) - - [Group creation](#) - - [Add or remove groups](#) - - [Leaving](#) - - [Everything about groups](#) - - [Setting description in realm](#) - - [Setting Group name in realm](#) - - [Setting rules in realm](#) - - [lock groups name|flood|photo|member in realm](#) - - [Unlock groups name|flood|photo|member](#) - - [Group setting in realm](#) - - [Add admin](#) - - [Remove admin](#) - - [Admins|group list in realm](#) - - [Broadcast](#) - - [Global ban commands](#) - - [Set group owner](#) - - [Bot stats](#) - - [owners and mods commands](#) - - [Hammer](#) - - [group name|member|arabic|flood|bots lock](#) - - [group name|member|arabic|flood|bots unlock](#) - - [Group modlist|rules|about|member clean](#) - - [Set groups rules|about](#) - - [Setting or changing group owner](#) - - [Setting or changing group photo](#) - - [Changing Group name](#) - - [Group link](#) - - [Promote and demote mods](#) - - [Resolve username](#) - - [Flood sensitivity](#) - - [Group rules and about](#) - - [Group settings](#) - - [modlist](#) - - [Help](#) - - [Owner](#) - - [Save and get](#) - - [Id](#) - - [group stats](#) - - [member list](#) - - [in private commands](#) - - [Hammer](#) - - [cleaning](#) - - [setting flood sensitivity](#) - - [lock groups member|name](#) - - [unlock groups member|name](#) - - [Group link](#) - - [change name|rules|name](#) - - [Group log](#) - - [Join](#) -- [Installation](#) - - [One command](#) - - [Realm configuration](#) -- [Support and development](#) -- [Special thanks to](#) -- [Our team !](#) +- [TeleSeed](#teleseed) +- [Features](#features) +- [Commands](#commands) + - [Admins commands](#admins-commands) + - [Group creation](#group-creation) + - [Add or remove groups](#add-or-remove-groups) + - [Leaving](#leaving) + - [Everything about groups](#everything-about-groups) + - [Setting description in realm](#setting-description-in-realm) + - [Setting group name in realm](#setting-group-name-in-realm) + - [Setting rules in realm](#setting-rules-in-realm) + - [lock groups name|flood|photo|member in realm](#lock-groups-namefloodphotomember-in-realm) + - [Unlock groups name|flood|photo|member](#unlock-groups-namefloodphotomember) + - [Group setting in realm](#group-setting-in-realm) + - [Add admin](#add-admin) + - [Remove admin](#remove-admin) + - [Admins|group list in realm](#adminsgroup-list-in-realm) + - [Broadcast](#broadcast) + - [Global ban commands](#global-ban-commands) + - [Set group owner](#set-group-owner) + - [Bot stats](#bot-stats) + - [owners and mods commands](#owners-and-mods-commands) + - [Hammer](#hammer) + - [group name|member|arabic|flood|bots lock](#group-namememberarabicfloodbots-lock) + - [group name|member|arabic|flood|bots unlock](#group-namememberarabicfloodbots-unlock) + - [Group modlist|rules|about|member clean](#group-modlistrulesaboutmember-clean) + - [Set groups rules|about](#set-groups-rulesabout) + - [Setting or changing group owner](#setting-or-changing-group-photo) + - [Setting or changing group photo](#setting-or-changing-group-photo) + - [Changing group name](#changing-group-name) + - [Group link](#group-link) + - [Promote and demote mods](#promote-and-demote-mods) + - [Resolve username](#resolve-username) + - [Flood sensitivity](#flood-sensitivity) + - [Group rules and about](#group-rules-and-about) + - [Group settings](#group-settings) + - [modlist](#modlist) + - [Help](#help) + - [Owner](#owner) + - [Save and get](#save-and-get) + - [Id](#id) + - [Group stats](#group-stats) + - [Member list](#member-list) + - [In private commands](#in-private-commands) + - [Hammer](#hammer) + - [cleaning](#cleaning) + - [setting flood sensitivity](#setting-flood-sensitivity) + - [lock groups member|name](#lock-groups-membername) + - [unlock groups member|name](#unlock-groups-membername) + - [Group link](#group-link) + - [change name|rules|name](#change-namerulesname) + - [Group log](#group-log) + - [Join](#join) +- [Installation](#installation) + - [One command](#one-command) + - [Realm configuration](#realm-configuration) +- [Support and development](#support-and-development) +- [Special thanks to:](#special-thanks-to) +- [Our team!](#our-team-) # Commands ## Admins commands **Only admins and sudo users can run these commands** ### Group creation ->/creategroup [group name] +>[!/]creategroup [group name] > ->>/creategroup SEED +>>[!/]creategroup SEED >>>will create a group >>> >>>_Only works in realms But sudo users can use it everywhere_ ###Add or remove groups ->/add +>[!/]add >>This command will add that group > ->/rem +>[!/]rem >>This command will remove that group ###Leaving ->/leave +>[!/]leave >>Bot will leave that group ###Everything about groups ->/all +>[!/]all >>This command will return everything about that group > ->/all [group_id] +>[!/]all [group_id] >>_Only onwer,admin and sudo users can use this command ### Setting description in realm -> /setabout [Group_id] [text] ->>/setabout 123456789 about ! +> [!/]setabout [Group_id] [text] +>>[!/]setabout 123456789 about >>>This command will set [text] as description of [Group_id] -### Setting Group name in realm -> /setname [Group_id] [text] ->>/setname 123456789 SEED +### Setting group name in realm +> [!/]setname [Group_id] [text] +>>[!/]setname 123456789 SEED >>>This command will set [text] as name of [Group_id] ### Setting rules in realm -> /setrules [Group_id] [text] ->>/setrules 123456789 rules ! +> [!/]setrules [Group_id] [text] +>>[!/]setrules 123456789 rules ! >>>This command will set [text] as rules of [Group_id] -### lock groups name|flood|photo|member in realm -> /lock [Group_id] [name|flood|photo|member] ->>/lock 123456789 name +### Lock groups name|flood|photo|member in realm +> [!/]lock [Group_id] [name|flood|photo|member] +>>[!/]lock 123456789 name >>>This command will lock name|flood|photo|member of [Group_id] ### Unlock groups name|flood|photo|member -> /Unlock [Group_id] [name|flood|photo|member] ->>/Unlock 123456789 name +> [!/]Unlock [Group_id] [name|flood|photo|member] +>>[!/]Unlock 123456789 name >>>This command will unlock name|flood|photo|member of [Group_id] ## Group setting in realm ->/setting [Group_id] ->>/setting 12345678 +>[!/]setting [Group_id] +>>[!/]setting 12345678 >>>This command will return settings of [Group_id] ### Add admin ->/addadmin [username] ->>/addadmin @username +>[!/]addadmin [username] +>>[!/]addadmin @username >>>This command will add username as admin >>> >>>_Only works in realms_ ### Remove admin ->/removeadmin [username] +>[!/]removeadmin [username] > ->!removeadmin [username] +>[!/]removeadmin [username] > ->>!removeadmin @username +>>[!/]removeadmin @username >>>This command will add username as admin >>> >>>_Only works in realms_ [username] ### Admins|group list in realm ->/list [admins|groups] ->>/list groups +>[!/]ist [admins|groups] +>>[!/]list groups >>>This command will return admins|groups list ### Broadcast ->/broadcast [text] ->>/broadcast Hello ! +>[!/]broadcast [text] +>>[!/]broadcast Hello ! >>>This command will send text to all groups >>> >>>_Only sudo users can run this command_ @@ -176,27 +176,27 @@ >>>This command will send text to [group_id] ##Global ban commands ->/banall [id] ->>/banall 123456789 +>[!/]banall [id] +>>[!/]banall 123456789 >>>This commands will globally ban [id] ->/unbanall [id] ->>/unbanall 123456789 +>[!/]unbanall [id] +>>[!/]unbanall 123456789 >>>This commands will remove [id] from global bans > ->/gbanlist +>[!/]gbanlist >>This command will return global bans ids > ->/banlist [group_id] ->>/banlist 123456789 +>[!/]banlist [group_id] +>>[!/]banlist 123456789 >>>This command will return banned user Of [group_id] ### Set group owner ->/setgpowner [group_id] [User_id] ->>/setgpowner 123456789 987654321 +>[!/]setgpowner [group_id] [User_id] +>>[!/]setgpowner 123456789 987654321 >>>This command will set [User_id] as the owner of [group_id] ### Bot stats ->/stats teleseed +>[!/]stats teleseed >>This command will return bot stats ## owners and mods commands @@ -205,139 +205,139 @@ _Sudo users and admins can also use this commands in all groups_ ### Hammer ->/kick [username|id] ->>/kick @useranme ->>/kick 123456789 +>[!/]kick [username|id] +>>[!/]kick @useranme +>>[!/]kick 123456789 >>>This command will remove that user > ->/ban [username|id] ->>/ban @username ->>/ban 123456789 +>[!/]ban [username|id] +>>[!/]ban @username +>>[!/]ban 123456789 >>>this command will ban and remove that user > ->/unban [id] ->>/unban 12345678 +>[!/]unban [id] +>>[!/]unban 12345678 >>>This command will unban that user > ->/banlist +>[!/]banlist >>This command will return bans list ### group name|member|arabic|flood|bots lock ->/lock [name|member|arabic|flood|bots] ->>/lock flood +>[!/]lock [name|member|arabic|flood|bots] +>>[!/]lock flood >>>This command will lock name|member|arabic|flood|bots of groups ### group name|member|arabic|flood|bots unlock ->/unlock [name|member|arabic|flood|bots] ->>/unlock flood +>[!/]unlock [name|member|arabic|flood|bots] +>>[!/]unlock flood >>>This command will unlock name|member|arabic|flood|bots of groups ### Group modlist|rules|about|member clean ->/clean [modlist|rules|about|member] ->>/clean modlist +>[!/]clean [modlist|rules|about|member] +>>[!/]clean modlist >>>This command will clean modlist|rules|about|member >>>_/clean member will kick all users except owner,admins and bot and it's for owners only_ ### Set groups rules|about ->/set [rules|about] [text] ->>/set rules don't spam ! +>[!/]set [rules|about] [text] +>>[!/]set rules don't spam! >> >>No NSFW >>> This command will set [text] as the rules|about of groups ### Setting or changing group owner ->/setowner [id] ->>/setowner 123456789 +>[!/]setowner [id] +>>[!/]setowner 123456789 >>>This command will set id as owner of that group ### Setting or changing group photo ->/setphoto +>[!/]setphoto >> This command will change or set group photo >>_also locks photo_ ### Changing Group name ->/setname [name] ->>/setname SEED +>[!/]setname [name] +>>[!/]setname SEED >>>This command will set [name] as name of groups ### Group link ->/newlink +>[!/]newlink >>This command will revoke group link > ->/link +>[!/]link >>This command will return group link ### Promote and demote mods ->/promote [username] ->>/promote @username +>[!/]promote [username] +>>[!/]promote @username >>>This command will promote @username as moderator > ->/demote [username] ->>/demote @username +>[!/]demote [username] +>>[!/]demote @username >>> This command will demote @username ### Resolve username ->/res [username] ->>/res @username +>[!/]res [username] +>>[!/]res @username >>>This command will return info about that username ### Flood sensitivity ->/setflood [value] ->>/set flood 15 +>[!/]setflood [value] +>>[!/]set flood 15 >>> will set flood sensitivity to [value] ### Group rules and about ->/about +>[!/]about >>This command will return group description > ->/rules +>[!/]rules >>This command will return group rules >>>_normal users can use it too_ ### Group settings ->/setting +>[!/]setting >>This command will return group settings ### modlist ->/modlist +>[!/]modlist >>This command will return group moderators >>>_normal users can use it too_ ###Help ->/help +>[!/]help ### Owner ->/owner +>[!/]owner >>This command will return owners id ### Save and get ->/save [title] [text] ->>/save spam Don't spam ! +>[!/]save [title] [text] +>>[!/]save spam Don't spam ! >>>This command will save text as that title > ->/get [title] ->>/get spam +>[!/]get [title] +>>[!/]get spam >>>This command will return text of that title ### Id ->/id +>[!/]id >>This command will return user or group id >>_can be triggered by reply_ >> >>_Normal users can use it_ ### group stats ->/stats +>[!/]stats >>This command will return group message statistic in a .txt file > ->/statslist +>[!/]statslist >>This command will return group message statistic ### member list ->/who +>[!/]who >>This command will return member list in a .txt file > ->/wholist +>[!/]wholist >>This command will return member list @@ -347,38 +347,38 @@ _Sudo users and admins can also use this commands in all groups_ **These commands only works in bots private** ### Hammer ->/owners group_id [kick|ban|unban] user_id ->>/owners 1234567 kick 1234567 +>[!/]owners group_id [kick|ban|unban] user_id +>>[!/]owners 1234567 kick 1234567 ### cleaning ->/owners group_id clean [modlist|rules|about] ->>/owners 1234567 clean modlist +>[!/]owners group_id clean [modlist|rules|about] +>>[!/]owners 1234567 clean modlist ### setting flood sensitivity ->/owners group_id setflood value ->>/owners 1234567 setflood 17 +>[!/]owners group_id setflood value +>>[!/]owners 1234567 setflood 17 ### lock groups member|name ->/owners group_id lock [member|name] ->>/owners 1234567 lock member +>[!/]owners group_id lock [member|name] +>>[!/]owners 1234567 lock member #### unlock groups member|name ->/owner group_id unlock [member|name] ->>/owners 1234567 unlock name +>[!/]owner group_id unlock [member|name] +>>[!/]owners 1234567 unlock name ### Group link ->/owners group_id get link ->>/owners 1234567 get link +>[!/]owners group_id get link +>>[!/]owners 1234567 get link > ->/owners group_id new link ->>/owners 1234567 new link +>[!/]owners group_id new link +>>[!/]owners 1234567 new link ### change name|rules|name ->/changename [group_id] [name] ->>/changename 123456789 SEED +>[!/]changename [group_id] [name] +>>[!/]changename 123456789 SEED > ->/changrules [group_id] [rules] ->>/changrules 123456789 rules ! +>[!/]changrules [group_id] [rules] +>>[!/]changrules 123456789 rules ! > >/changeabout [group_id] [about] >>/changeabout 123456789 about ! @@ -388,7 +388,7 @@ _Sudo users and admins can also use this commands in all groups_ >>/loggroup 123456789 ### Join ->/join [group_id] +>/[!/]oin [group_id] >> THis command will add user in [group_id] **U can use both "/" and "!"** @@ -436,7 +436,7 @@ then start the bot again Do not contact **us** In private for support. Join our bot development group by sending `/join 56670147` to [@TeleSeed](https://telegram.me/TeleSeed) -_If you are using /join service for first time you have to send it 11 time ( Bot is spam reported )_ +_If you are using /join service for first time you have to send it 11 times ( Bot is spam reported )_ # Special thanks to [@seyedan25](https://telegram.me/seyedan25) @@ -451,7 +451,7 @@ For graphic designs [@JuanPotato](https://github.com/JuanPotato) -# Our team ! +# Our team! [Alphonse](https://github.com/hmon) ([Telegram](https://telegram.me/iwals)) From 9676412aa58f5573e589ce0a33be9ce5cb1d8dda Mon Sep 17 00:00:00 2001 From: Rondoozle Date: Tue, 15 Dec 2015 04:06:03 -0500 Subject: [PATCH 3/5] Update inrealm.lua --- plugins/inrealm.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/inrealm.lua b/plugins/inrealm.lua index f72a71a..cc65179 100644 --- a/plugins/inrealm.lua +++ b/plugins/inrealm.lua @@ -445,7 +445,7 @@ chat_info(receiver, returnids, {receiver=receiver}) local target = matches[2] return show_group_settings(msg, data, target) end - if matches[1] == 'setgpname' and is_admin(msg) then + if matches[1] == 'setname' and is_admin(msg) and matches[3] then local new_name = string.gsub(matches[3], '_', ' ') data[tostring(matches[2])]['settings']['set_name'] = new_name save_data(_config.moderation.data, data) @@ -513,7 +513,6 @@ return { "^[!/](createrealm) (.*)$", "^[!/](setabout) (%d+) (.*)$", "^[!/](setrules) (%d+) (.*)$", - "^[!/](setname) (%d+) (.*)$", "^[!/](setgpname) (%d+) (.*)$", "^[!/](lock) (%d+) (.*)$", "^[!/](unlock) (%d+) (.*)$", From 56aded9cd02217f4664e6c560705585c39e84d14 Mon Sep 17 00:00:00 2001 From: iman daneshi Date: Tue, 15 Dec 2015 13:35:29 +0330 Subject: [PATCH 4/5] Update ingroup.lua --- plugins/ingroup.lua | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/plugins/ingroup.lua b/plugins/ingroup.lua index 6c4cf39..e9ccd46 100644 --- a/plugins/ingroup.lua +++ b/plugins/ingroup.lua @@ -627,21 +627,6 @@ local function run(msg, matches) return nil end end - if matches[1] == 'chat_add_user' then - if not msg.service then - return "Are you trying to troll me?" - end - local receiver = 'user#id'..msg.action.user.id - local data_cat = 'rules' - if not data[tostring(msg.to.id)][data_cat] then - return false - end - local rules = data[tostring(msg.to.id)][data_cat] - -- local rules = 'Welcome to "' .. string.gsub(msg.to.print_name, '_', ' ') ..'" this group has rules that you should follow:\n'..rules - - savelog(msg.to.id, name_log.." ["..msg.from.id.."] deleted user "..msg.action.user.id) - send_large_msg(receiver, rules) - end if matches[1] == 'chat_del_user' then if not msg.service then -- return "Are you trying to troll me?" From b7aaebfc234c0acb181fa29b0cbafd0d16208274 Mon Sep 17 00:00:00 2001 From: BossEagle Date: Tue, 15 Dec 2015 13:25:25 +0300 Subject: [PATCH 5/5] Small fix --- plugins/inrealm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inrealm.lua b/plugins/inrealm.lua index cc65179..49d6dc3 100644 --- a/plugins/inrealm.lua +++ b/plugins/inrealm.lua @@ -513,7 +513,7 @@ return { "^[!/](createrealm) (.*)$", "^[!/](setabout) (%d+) (.*)$", "^[!/](setrules) (%d+) (.*)$", - "^[!/](setgpname) (%d+) (.*)$", + "^[!/](setname) (%d+) (.*)$", "^[!/](lock) (%d+) (.*)$", "^[!/](unlock) (%d+) (.*)$", "^[!/](setting) (%d+)$",