Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion lua/groupbutler/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ local _M =
},
chat_hashes = {'extra', 'info', 'links', 'warns', 'mediawarn', 'spamwarns', 'blocked', 'report', 'defpermissions',
'defpermduration'},
chat_sets = {'whitelist'},
chat_sets = {'whitelist', 'blacklist'},--, 'mods'},

bot_keys = {
d3 = {'bot:general', 'bot:usernames', 'bot:chat:latsmsg'},
d2 = {'bot:groupsid', 'bot:groupsid:removed', 'tempbanned', 'bot:blocked', 'remolden_chats'} --remolden_chats: chat removed with $remold command
Expand Down
27 changes: 25 additions & 2 deletions lua/groupbutler/plugins/help.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,28 @@ If users send a whitelisted link, they won't be warned or kicked.
When the group link is saved with `/setlink`, it gets automatically added to the whitelist.

*Why links are saved without* _https://_ *and* _www_*?*
The bot auto-removes _https://, http:// and www_ from every link to reduce the possibility of having the same link saved twice.
]])
elseif key == 'blacklist' then
return _([[*Blacklist settings*

If an user sends a blacklisted link, it will be deleted.

`/blacklist [link(s)]` or `/bl [link(s)]`: add one or more links to the blacklist.
`/unblacklist [link(s)]` or `/unbl [link(s)]`: remove one or more links from the blacklist.
`/blacklist` or `/bl`: get the blacklist.
`/blacklistl -` or `/bl -`: empty the blacklist.

*Why links are saved without* _https://_ *and* _www_*?*
The bot auto-removes _https://, http:// and www_ from every link to reduce the possibility of having the same link saved twice.
]])
elseif key == 'extra' then
return i18n([[
*Extra commands*

The bot auto-removes _https://, http:// and www_ from every link to reduce the possibility of having the same link saved twice.]]), -- luacheck: ignore 631
extra = i18n([[*Extra commands*

#extra commands are a smart way to save your own custom commands.

• `/extra [#trigger] [reply]`: set a reply to be sent when someone writes the trigger.
Expand Down Expand Up @@ -254,9 +274,12 @@ local function dk_admins(self)
[i18n("Extra commands")] = 'extra',
[i18n("Warns")] = 'warns'
},
{
[i18n("Welcome settings")] = 'welcome',
{
[i18n("Links whitelist")] = 'whitelist',
[i18n("Links blacklist")] = 'blacklist',
},
{
[i18n("Welcome settings")] = 'welcome',
}
}
for _, line in pairs(list) do
Expand Down
Loading