-
Notifications
You must be signed in to change notification settings - Fork 1
Error handling
The AutoMod has several built in error handlers with custom error messages to simplify the troubleshooting process.
All of the following messages are possible answers that a moderator might receive after having attempted to add a new AutoMod rule, by sending a message to the bot.
The schema of one or more of the submitted configurations doesn't match any of the expected JSON schemas. This is likely caused by an error on your end while configuring the AutoMod. Make sure to double check the rule you are trying to write, compare it to the many examples presented in this wiki and the expected JSON schema found within this repository.
To help you fix this error you can also add a $schema
proprety to your rule and use either Visual Studio Code or the online editor to validate it. Add one of the following lines to your rule, in accordance with the rule
field you are trying to set:
Comment:
{
"$schema": "https://raw.githubusercontent.com/ornato-t/lemmy-automoderator/master/src/schemas/comment.json",
"rule": "comment",
[...]
}
Post:
{
"$schema": "https://raw.githubusercontent.com/ornato-t/lemmy-automoderator/master/src/schemas/post.json",
"rule": "post",
[...]
}
Exception:
{
"$schema": "https://raw.githubusercontent.com/ornato-t/lemmy-automoderator/master/src/schemas/exception.json",
"rule": "exception",
[...]
}
Mention:
{
"$schema": "https://raw.githubusercontent.com/ornato-t/lemmy-automoderator/master/src/schemas/mention.json",
"rule": "mention",
[...]
}
The community for which you are trying to add a rule doesn't exist on the local instance. This might be either because it does exist but it's hosted on a different instance or because you are writing its name incorrectly.
The "community"
field should be filled with the name
of a community, not its displayed_name
. In other words, for the community displayed in this picture you should write "lemmy_support", not "Lemmy Support".
Only moderators may specify AutoMod rules.
-
If you are a mod you probably have made a mistake in the
"community"
field and are trying to change the configuration of a community that does exist but where you are not a mod. - If you are an admin you still can't change the rules of a community, unless you also become a mod in said community
- If you are neither a mod nor an admin what the hell were you thinking?
In its current pre-release version, the AutoMod has to be manually added to a community's mod team. This means that you have to manually write a comment in the target community with the AutoMod's account, appoint it as a mod with your admin/mod and then you'll be able to configure it.
This process will be automated in future releases of the bot.
This is a generic error
The AutoMod for Lemmy is an open source project published with the GPL-3.0 license by Tommaso Ornato, built for the Based Count Lemmy instance.