Skip to content

Instantly share code, notes, and snippets.

@ipetermac
Last active February 15, 2021 04:21
Show Gist options
  • Save ipetermac/68e3ec91dcaa344aa00aad0d15848e71 to your computer and use it in GitHub Desktop.
Save ipetermac/68e3ec91dcaa344aa00aad0d15848e71 to your computer and use it in GitHub Desktop.
Carl-bot Custom Tag - Custom Channel Lock
{=(comment):
- The tag allow certain role to lock/unlock channel without granting manage channel perms.
- Please read the comment inside the tagscript, and do update what necessary.
- Screen shot : https://i.imgur.com/VRgwSEg.jpg
- Import Link : https://carl.gg/t/593746
- Reference docs : https://docs.carl.gg/tags-and-triggers/tags-advanced-usage/
- Thank you : Asty'#8926, Chelsie#2507}
{=(AUTHOR):fsociety#1200}
{=(comment):update your bot prefix below}
{=(pre):-}
{=(comment):update this tag name below}
{=(tag.name):KS}
{=(comment):add authorize role id below and separate by comma}
{=(perms.roleids):790183405445840906}
{=(comment):this is error message for none authorize use}
{=(perms.error):No permission}
{require({perms.error}):{perms.roleids}}
{=(comment):channels list and syntax usage option}
{=(syntax.error):Hi, please use command as below.
`{pre}{tag.name} unlock number` OR `{pre}{tag.name} lock number`
Channel Number
1 - #🐸-dank-memer
2 - #🐸-trading-ads
3 - #🐸-trading-chat
4 - #🐸-middleman-requests}
{=(comment):validate the second input,if not valid then return an error}
{=():}{{if({contains({args(2)}):1 2 3 4}==false):blacklist({syntax.error}):{server(id)}}}
{=(comment):channel id list which allow to lock/unlock}
{=(channel.1):778192171488116736}
{=(channel.2):789158035732824164}
{=(channel.3):789152382339645463}
{=(channel.4):785678007758225449}
{=(comment):main command is here}
{override}{cmd:{args(1)} {channel.{args(2)}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment