Comments (6)
also it needs commands for blacklisting ie global (owner only and eventually global chat moderators)
and the people who can add global link can blacklist people underneath their permissions and hieracy plus other stuff.
from sincroni.
This table's goal was to blacklist people from being able send messages to that guild as well as preventing them from sending the message from that guild
Blacklisted users are those who the guild Don't want their messages to be sent to them or to send from their guild
Global Blacklisted prevents them for using it at all
This only per the global chat type or all if wanted
blacklisting blocks people from using the bot per guild if guild only
if global blacklisting, it stops from sending messages to and in global chat
- this should have enough info on it.
from sincroni.
Filtering by type and blacklisting add commands is necessary.
global blacklist add -> specific guild only
global blacklist remove -> specific guild only
owner only versions should exist too.
from sincroni.
CREATE TABLE IF NOT EXISTS SINCRONI_BLACKLIST(
id SERIAL NOT NULL,
server_id BIGINT NOT NULL,
entity_id BIGINT NOT NULL,
pub BOOLEAN DEFAULT FALSE,
dev BOOLEAN DEFAULT FALSE,
private BOOLEAN DEFAULT FALSE,
blacklist_type SMALLINT DEFAULT 0,
reason TEXT DEFAULT "No reason provided"
)
from sincroni.
Command for per guild is practically done
blacklist
unblacklist are weird names but oh well.
I think a confirm check may do well:
view = await Confirm.prompt(
ctx,
user_id=ctx.author.id,
content=f"Are you sure you want to unlink {channel.mention} as global chat?",
)
if view.value is None:
await view.message.edit(
content=f"~~{view.message.content}~~ you didn't respond on time!... not doing anything."
)
return
elif view.value is False:
await view.message.edit(
content=f"~~{view.message.content}~~ okay, not unlinking {channel.mention} as global chat."
)
return
else:
await view.message.edit(content=f"~~{view.message.content}~~ unlinking {channel.mention} as global chat.")
like that one for global unlink but for global unblacklist
from sincroni.
Line 406 in 2a3fedc
from sincroni.
Related Issues (12)
- entity_id issues HOT 1
- anti-spam support HOT 1
- Allow people to pick custom colors with SINCRONI_EMBED_COLOR HOT 9
- Finish Linked channels: HOT 2
- Add support for whitelisting channels: HOT 1
- Coming soon hopefully:
- custom owner command with image support
- Custom words to be blacklisted at the start of the bot's bootup
- warn system: HOT 1
- repeat ie more lack repeating stuff chat. HOT 4
- other todo HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sincroni.