mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-29 05:07:49 +00:00
Merge pull request #103 from C0rn3j/patch-1
Fix up grammar to please my OCD
This commit is contained in:
commit
74ea42c814
@ -86,7 +86,7 @@ const isPublic = async username => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const dh = {
|
const dh = {
|
||||||
blacklistedDomain: R.always(Action.Warn('Link to blacklisted domain')),
|
blacklistedDomain: R.always(Action.Warn('Link to a blacklisted domain')),
|
||||||
nothing: R.always(Action.Nothing),
|
nothing: R.always(Action.Nothing),
|
||||||
tme: async url => {
|
tme: async url => {
|
||||||
if (url.pathname === '/') return Action.Nothing;
|
if (url.pathname === '/') return Action.Nothing;
|
||||||
@ -98,7 +98,7 @@ const dh = {
|
|||||||
if (await managesGroup({ link: url.toString() })) return Action.Nothing;
|
if (await managesGroup({ link: url.toString() })) return Action.Nothing;
|
||||||
const [ , username ] = R.match(/^\/(\w+)(?:\/\d*)?$/, url.pathname);
|
const [ , username ] = R.match(/^\/(\w+)(?:\/\d*)?$/, url.pathname);
|
||||||
if (username && !await isPublic('@' + username)) return Action.Nothing;
|
if (username && !await isPublic('@' + username)) return Action.Nothing;
|
||||||
return Action.Warn('Link to Telegram group or channel');
|
return Action.Warn('Link to a Telegram group or channel');
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user