Skip to content

Instantly share code, notes, and snippets.

@ipetermac
Last active February 15, 2021 04:20
Show Gist options
  • Save ipetermac/4f748e314d55924fc6c4381a1456aae7 to your computer and use it in GitHub Desktop.
Save ipetermac/4f748e314d55924fc6c4381a1456aae7 to your computer and use it in GitHub Desktop.
Carl-bot Custom Tag - Change Bad Name
{=(COMMENT):Author PETER#3607}
{=(COMMENT):update bot prefix}
{=(prefix):-}
{=(COMMENT):error message when invalid input}
{=(error):**Mod ONLY**, usage `{prefix}badname @user`}
{=(COMMENT):update Role ID for Admin and Mods}
{=(RoleID):732222516277280961,729736736149602304}
{=(COMMENT):update channel ID for Mod logs}
{=(ModLog):779919214168768512}
{require(Mod Only):{RoleID}}
{redirect:{ModLog}}
{=(COMMENT):defined random name to be given}
{=(name):{random:David,Micheal,Nick,Steven,Jackson,Jenifer}}
{=(COMMENT):validate input}
{=():}{{if({user(id)}=={target(id)}):blacklist({error}):{server(id)}}}
{=(COMMENT):Main Command}
{silent}{cmd:setnick {target(id)} {if({args(2+)}==):{name}|{args(2+)}}}
{=(COMMENT):Mod log template}
{=(title): warn | rule 1}
{=(output):
**Offender** : **{target}** {target(proper)}
**Reason** : Your nickname is against the rules, please change it accordingly.
**Changed Nickname** : {target(mention)}
**Responsible Moderator** : Carl-bot#1536}
{embed(color):#FFF880}
{embed(timestamp):now}
@ipetermac
Copy link
Author

ipetermac commented Feb 3, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment