staffping

Privateunrated

Content

31 lines


{=(invalidboolerror):Invalid input for first argument: boolean expected. Correct usage: `staffping <add|remove> [duration]`. If you want to be pinged for this duration, run `?staffping add [duration]`. To remove this, run `?staffping remove`}
{=(permissionerror):You do not have permission to execute this command.}
{=(rolerequired):767544934042959892}
{=(actionrole):770883537083695124}

{=(COMMENT):change the role required to the staff role in your server}
{=(COMMENT):action role is the one you need to create that people will ping for help}
{=(COMMENT):permissionerror will be sent if the user doesn't have the required role kek. Set this to blank and no message will be sent, or use a require block if ya want to.}


{=(COMMENT):try to avoid changing stuff below, its easy to screw up kek}

{=(COMMENT):Restrict the command to users with the role specified. If they have the role, override command permissions.}
{override}{require({permissionerror}):{rolerequired}}

{=(COMMENT):A filter to allow different kinds of booleans as the first argument.}
{=(on):{contains({lower:{args(1)}}):add on true enabled}}
{=(off):{contains({lower:{args(1)}}):remove off false disabled}}

{=(COMMENT):This sets a variable to tell the next block whether to add or remove the role. This is used in the next step.}

{=(temp):{if({on}==true):+|-}}
{=(perm):{if({on}==true):add|remove}}

{=(COMMENT):This sets the command to run either 'temprole' or 'role' depending on if there's a second argument.}
{=(str):{if(=={list(1):{join(~):{args}}}):role {perm} {user(id)} {actionrole}|temprole custom {user(id)} {args(2)} {temp}{actionrole}}}

{=(COMMENT):If there's an input error, send the error message. If not, run the command above. Don't fuck this up or your screwed}
{{if({on}=={off}):invalidboolerror|c:{str}}}
Raw JSON
{
  "id": 396682,
  "created_at": "2020-10-28T05:38:12.000Z",
  "tag_name": "staffping",
  "nsfw": false,
  "owner_id": "721922636745146418",
  "uses": 46,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "755175764835434677",
  "sharer": "721922636745146418",
  "content": "\n\n{=(invalidboolerror):Invalid input for first argument: boolean expected. Correct usage: `staffping <add|remove> [duration]`. If you want to be pinged for this duration, run `?staffping add [duration]`. To remove this, run `?staffping remove`}\n{=(permissionerror):You do not have permission to execute this command.}\n{=(rolerequired):767544934042959892}\n{=(actionrole):770883537083695124}\n\n{=(COMMENT):change the role required to the staff role in your server}\n{=(COMMENT):action role is the one you need to create that people will ping for help}\n{=(COMMENT):permissionerror will be sent if the user doesn't have the required role kek. Set this to blank and no message will be sent, or use a require block if ya want to.}\n\n\n{=(COMMENT):try to avoid changing stuff below, its easy to screw up kek}\n\n{=(COMMENT):Restrict the command to users with the role specified. If they have the role, override command permissions.}\n{override}{require({permissionerror}):{rolerequired}}\n\n{=(COMMENT):A filter to allow different kinds of booleans as the first argument.}\n{=(on):{contains({lower:{args(1)}}):add on true enabled}}\n{=(off):{contains({lower:{args(1)}}):remove off false disabled}}\n\n{=(COMMENT):This sets a variable to tell the next block whether to add or remove the role. This is used in the next step.}\n\n{=(temp):{if({on}==true):+|-}}\n{=(perm):{if({on}==true):add|remove}}\n\n{=(COMMENT):This sets the command to run either 'temprole' or 'role' depending on if there's a second argument.}\n{=(str):{if(=={list(1):{join(~):{args}}}):role {perm} {user(id)} {actionrole}|temprole custom {user(id)} {args(2)} {temp}{actionrole}}}\n\n{=(COMMENT):If there's an input error, send the error message. If not, run the command above. Don't fuck this up or your screwed}\n{{if({on}=={off}):invalidboolerror|c:{str}}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T22:55:41.477Z"
}