Giter Club home page Giter Club logo

Comments (6)

JDJGInc avatar JDJGInc commented on August 14, 2024

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.

JDJGInc avatar JDJGInc commented on August 14, 2024

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.

JDJGInc avatar JDJGInc commented on August 14, 2024

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.

JDJGInc avatar JDJGInc commented on August 14, 2024
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.

JDJGInc avatar JDJGInc commented on August 14, 2024

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.

JDJGInc avatar JDJGInc commented on August 14, 2024

# maybe make this records filter into something that can handle pub, developer, private, and repeat types ie detect the chat_type and only grab blacklist stuff from that sort of thing.

from sincroni.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.