Reformatting text

pull/8/head
sgoudham 4 years ago
parent 945cde2982
commit 1b78a33d1e

@ -30,6 +30,8 @@ class rules_roles(commands.Cog, command_attrs=dict(hidden=True)):
@command(name="rules", aliases=["Rules"]) @command(name="rules", aliases=["Rules"])
@cooldown(1, 5, BucketType.user) @cooldown(1, 5, BucketType.user)
async def rules(self, ctx): async def rules(self, ctx):
"""Ruleset for Ensō"""
# Making sure this command only works in Enso # Making sure this command only works in Enso
if not ctx.guild.id == enso_guild_ID: if not ctx.guild.id == enso_guild_ID:
await ctx.send("**Sorry! That command is only for a certain guild!**") await ctx.send("**Sorry! That command is only for a certain guild!**")
@ -42,101 +44,72 @@ class rules_roles(commands.Cog, command_attrs=dict(hidden=True)):
author, guild_icon, enso_icon, enso_name = get_user_info(self, ctx) author, guild_icon, enso_icon, enso_name = get_user_info(self, ctx)
# Set up embed to list all the rules within the server # Set up embed to list all the rules within the server
embed = Embed(title="```(っ◔◡◔)っ Ensō Rules```", embed = Embed(title="(っ◔◡◔)っ Ensō Rules",
colour=enso_embedmod_colours, colour=enso_embedmod_colours,
description="``` ヽ(͡◕ ͜ʖ ͡◕)ノ Please respect the following rules that are going to be listed below ヽ(͡◕ ͜ʖ ͡◕)ノ ```", description="ヽ(͡◕ ͜ʖ ͡◕)ノ Please respect the following rules that are going to be listed below ヽ(͡◕ ͜ʖ ͡◕)ノ",
timestamp=datetime.datetime.utcnow()) timestamp=datetime.datetime.utcnow())
embed.set_thumbnail(url=guild_icon) embed.set_thumbnail(url=guild_icon)
embed.set_author(name=enso_name, embed.set_author(name=enso_name,
icon_url=enso_icon) icon_url=enso_icon)
embed.add_field( fields = [
name=blank_space, (blank_space,
value="**➳ Don't be overly toxic/purposely problematic**" + "**➳ Don't be overly toxic/purposely problematic** \n This one is pretty self explanatory, just treat others the way you want to be treated and you'll get along with everyone :)",
"\n This one is pretty self explanatory, just treat others the way you want to be treated and you'll get along with everyone :)", False),
inline=False) (blank_space,
embed.add_field( "**➳ Respect all admins and staff** \n They are enforcing these rules to help make and keep this server a fantastic place to hang out.",
name=blank_space, False),
value="**➳ Respect all admins and staff**" + (blank_space,
"\n They are enforcing these rules to help make and keep this server a fantastic place to hang out.", "**➳ Keep content organized into their respective channels** \n For example. When connected to a voice channel, all messages relating to the discussion in voice-chat should be sent in #vc-chat",
inline=False) False),
embed.add_field( (blank_space,
name=blank_space, "**➳ No advertising other servers** \nIt's disrespectful to do that and won't be tolerated in this server",
value="**➳ Keep content organized into their respective channels**" + False),
"\n For example. When connected to a voice channel, all messages relating to the discussion in voice-chat should be sent in #vc-chat", (blank_space,
inline=False) "**➳ No pornographic/adult/other NSFW material** \n This is a community server and not meant to share this kind of material. Try to stay around PG 13 as most of our users are between 13 - 16",
embed.add_field( False),
name=blank_space, (blank_space,
value="**➳ No advertising other servers**" + "**➳ Don't take insults too far** \n Poking fun at others is okay, just don't take it too far. Any disputes can be brought up to a staff member and they will handle it." +
"\nIt's disrespectful to do that and won't be tolerated in this server",
inline=False)
embed.add_field(
name=blank_space,
value="**➳ No pornographic/adult/other NSFW material**" +
"\n This is a community server and not meant to share this kind of material. Try to stay around PG 13 as most of our users are between 13 - 16",
inline=False)
embed.add_field(
name=blank_space,
value="**➳ Don't take insults too far**" +
"\n Poking fun at others is okay, just don't take it too far. Any disputes can be brought up to a staff member and they will handle it." +
"\nIf you end up causing a problem or taking things into your in hands, you will be punished", "\nIf you end up causing a problem or taking things into your in hands, you will be punished",
inline=False) False),
embed.add_field( (blank_space,
name=blank_space, "**➳ Explicit Language** \n Swearing is perfectly fine as long as it's not in excess, with some exceptions of course." +
value="**➳ Explicit Language**" +
"\n Swearing is perfectly fine as long as it's not in excess, with some exceptions of course." +
"These exceptions being racial, sexual, and ethnic slurs", "These exceptions being racial, sexual, and ethnic slurs",
inline=False) False),
embed.add_field( (blank_space,
name=blank_space, "**➳ Discord ToS** \n As well as following the rules we have set forth, please make sure to follow Discord's ToS https://discordapp.com/terms ",
value="**➳ Discord ToS**" + False),
"\n As well as following the rules we have set forth, please make sure to follow Discord's ToS https://discordapp.com/terms ", (blank_space,
inline=False) "```( ͡°ω ͡°) Disciplinary Actions ( ͡°ω ͡°)```", False),
embed.add_field( (blank_space,
name=blank_space, "**➳ First Offense** \n Warning",
value="```( ͡°ω ͡°) Disciplinary Actions ( ͡°ω ͡°)```", True),
inline=False) (blank_space,
embed.add_field( "**➳ Second Offense** \n1 hour mute",
name=blank_space, True),
value="**➳ First Offense**" + (blank_space,
"\n Warning", "**➳ Third Offense** \n12 hour mute",
inline=True) True),
embed.add_field( (blank_space,
name=blank_space, "**➳ Fourth Offense** \n24 hour mute",
value="**➳ Second Offense**" + True),
"\n1 hour mute", (blank_space,
inline=True) "**➳Fifth Offense** \n Kicked from the server",
embed.add_field( True),
name=blank_space, (blank_space,
value="**➳ Third Offense**" + "**➳ Sixth Offense** \n Banned from the server",
"\n12 hour mute", True),
inline=True) (blank_space,
embed.add_field( "**➳ There are, of course, exceptions to these rules based on the severity of the offense Minor offenses will play out as described but major offenses will be dealt with at the discretion of the staff member involved.**",
name=blank_space, False),
value="**➳ Fourth Offense**" + (blank_space,
"\n24 hour mute", f"**➳ Any disputes about a staff members choices or actions can be brought to myself, {ctx.message.author.mention} or my co-owner, {izzyID}**",
inline=True) False)]
embed.add_field(
name=blank_space, # Add fields to the embed
value="**➳Fifth Offense**" + for name, value, inline in fields:
"\n Kicked from the server", embed.add_field(name=name, value=value, inline=inline)
inline=True)
embed.add_field(
name=blank_space,
value="**➳ Sixth Offense**" +
"\n Banned from the server",
inline=True)
embed.add_field(
name=blank_space,
value="**➳ There are, of course, exceptions to these rules based on the severity of the offense. "
"Minor offenses will play out as described but major offenses will be dealt with at the discretion of the staff member involved.**",
inline=False)
embed.add_field(
name=blank_space,
value=f"**➳ Any disputes about a staff members choices or actions can be brought to myself, {ctx.message.author.mention} " +
f", or my co-owner, {izzyID}**",
inline=False)
# Dm the user the embedded message # Dm the user the embedded message
await author.send(embed=embed) await author.send(embed=embed)

Loading…
Cancel
Save