|
|
@ -187,8 +187,8 @@ class Modmail(commands.Cog):
|
|
|
|
|
|
|
|
|
|
|
|
# Throw error if the guild already exists and then stop the function
|
|
|
|
# Throw error if the guild already exists and then stop the function
|
|
|
|
if result is not None:
|
|
|
|
if result is not None:
|
|
|
|
await ctx.send("**Looks like this guild already has a modmail system set up!" +
|
|
|
|
await ctx.send("Looks like this guild already has a **Modmail System** set up!" +
|
|
|
|
f"\nPlease check `{ctx.prefix}help` for information on how to update/delete existing information**")
|
|
|
|
f"\nPlease check **{ctx.prefix}help** for information on how to update/delete existing information")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
# As long as the channel exists within the guild
|
|
|
|
# As long as the channel exists within the guild
|
|
|
@ -242,14 +242,14 @@ class Modmail(commands.Cog):
|
|
|
|
# Execute the SQL Query
|
|
|
|
# Execute the SQL Query
|
|
|
|
cursor.execute(insert_query, vals)
|
|
|
|
cursor.execute(insert_query, vals)
|
|
|
|
|
|
|
|
|
|
|
|
await ctx.send("**Your Modmail system is now successfully set up!" +
|
|
|
|
await ctx.send("Your **Modmail System** is now successfully set up!" +
|
|
|
|
f"\nPlease refer to `{ctx.prefix}help` for any information**")
|
|
|
|
f"\nPlease refer to **{ctx.prefix}help** for any information")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
except mariadb.IntegrityError as err:
|
|
|
|
except mariadb.IntegrityError as err:
|
|
|
|
print(err)
|
|
|
|
print(err)
|
|
|
|
await ctx.send("Looks like this guild already has a modmail system set up!" +
|
|
|
|
await ctx.send("Looks like this guild already has a **Modmail System** set up!" +
|
|
|
|
f"\nPlease check `{ctx.prefix}help` for information on how to update/delete existing information")
|
|
|
|
f"\nPlease check **{ctx.prefix}help** for information on how to update/delete existing information")
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# Send error message if the channel ID is not recognised
|
|
|
|
# Send error message if the channel ID is not recognised
|
|
|
|
await ctx.send("**Invalid Channel ID. Aborting Process...**")
|
|
|
|
await ctx.send("**Invalid Channel ID. Aborting Process...**")
|
|
|
|