Git Product home page Git Product logo

clank-ng's People

Contributors

danirod avatar

Stargazers

 avatar  avatar

Watchers

 avatar

clank-ng's Issues

Antiflood hook

Given that forums are an upcoming feature later this year, and this will cause the number of channels to be reduced, the purposes of the antiflood will shift.

In the new version, antiflood will stop moderating for civil purposes (duplicated messages cause confusion and are difficult to answer, which for some unknown reason Discord users seem to accept, despite sounding horrendous), and start moderating for antispambot purposes (some bots like to send the same message to multiple messages).

Therefore, the antiflood feature will catch copies of the same message sent to multiple channels in a small amount of time. The small amount of time is going to be defined less than an hour. In such case, the bot will timeout the person for an additional hour with the reason "Sends same message to different channels -- may be a spambot?", and deletes all the copies of the messages, in case the original message contains dangerous links.

Karma hook

This hook should intercept events on messages and reactions, and assign points to the users whenever they send a message. The points may be withdrawn if the original messages are removed. Also, reacting with a thumbs up or a heart to a message should also issue points, and reacting with a thumbs down to a message should withdraw points. Then, they should run the triggers.

Roster hook

The roster hook will detect some moderation events and send notifications to the public and private modlogs.

Action kind To private? To public?
Member joins
Member leaves
Member gets timed out
Member time out gets removed
Member gets kicked
Member gets banned

Additionally, since time out evictions do not cause an event to be received by the bot when they evict for natural purposes, when a timeout happens, a timer should be set so that the expiration is also logged both in public and in private modlog.

Forum hook

Some channels are designated as pseudo-forum channels, which mean that sending a message to these channels should cause a thread to be opened automatically. This hook handles messages sent to these channels in order to open a thread automatically.

Depending on the kind of pseudo-forum, additional messages may be sent to the thread with information and actions.

This hook should be designed so that it can be removed once we migrate the server to real forum channels.

Quote hook

This hook will detect messages containing links to Discord messages and it will send an embed quoting the original message, which is useful when copying links to a different channel to embed the original content.

Delete hook

This hook should sent to the deletion modlog a message whenever a message gets deleted. Once a moderator has checked that the deleted message was not something that may require further action (such as a bad message being deleted, which would be desirable to moderate anyway), the original message can (and should) be deleted from the modlog.

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.