Comments (6)
Comment from Johannes Christ:
Should probably be postponed until infractions use the Django website's API
from bot.
@jchristgit You worked on updating the bot side of things to work with the new API, right? IIRC the API itself does support querying for more fields now. Have these new capabilities been transferred to the bot commands too?
from bot.
As far as I know, the implementation in the moderation cog hasn't changed: a moderator can search for infractions based on the user or the reason (with regex support). @scragly is planning on rewriting the moderation cog, which is probably a good time to look into improving the search capabilities as well.
from bot.
There's two ways to approach this (or a mix of both I suppose):
- A generic search command which will support partial matches on user and actor names along with the reason. It will also support exact matches for IDs. This is easier to implement and easier to use (just a single command covers everything) but at the cost of less control over the search query. For example, if one wishes to search for an actor by name, if their name appeared in an unrelated infraction's reason, that would also show up in the search result. On the site, the implementation would utilise the
SearchFilter
andsearch_fields
. The date range would still need to be a separate command. - Specific commands for each field. User IDs and names could likely be grouped into one command, and the field to search inferred by whether search query represents a valid user ID.
from bot.
We do not support searching by agent yet, adding that as a sub command would be nice.
You can get stats about the infractions through grafana and have fancy graph, I don’t think a command for that is much needed.
from bot.
All parts for this are done save for the statistics command, and like mentioned we have grafana for this. If a need arises for seeing the actual infractions in the timespan via a command we can open a separate issue.
from bot.
Related Issues (20)
- Supporting diffs in Github links HOT 1
- Update tests to ensure that infractions sent to the DB are NOT truncated (even if so on Discord's side)
- Forbidden: 403 Forbidden (error code: 40058): Cannot message this thread until after the post author has sen...
- Automatically apply pardoned timeouts upon rejoining the server HOT 3
- Multi-Purpose Discord Bot
- DM users opening a help post
- Remove `rich_embed` filter HOT 3
- Update ban confirmation button labels and colours
- Home
- Document how to invoke tags within tag groups in `/tag` command
- Avoid deleting reminders silently
- Newline antispam filter potentially handles actual rendered lines of formatting incorrectly HOT 4
- !eval output and pastebin content are same when the output is 11 lines HOT 3
- Context Menu for incidenting messages HOT 1
- Have bot update nomination thread once 3 days has passed
- Post log from `!clean` (and simialr commands) in #message-change-log HOT 2
- Add message link to replied message to the embeds sent in #message-change-log HOT 3
- Use the new bulk ban feature HOT 2
- Bot
- Bot
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 bot.