diff --git a/settings.py b/settings.py index 3b7229ff..c807726b 100644 --- a/settings.py +++ b/settings.py @@ -1,3 +1,4 @@ +import random from contextlib import closing from discord import Colour @@ -49,6 +50,12 @@ colors = { # Grabbing the list of colours colour_list = [c for c in colors.values()] + +def rndColour(): + """Generate a random hex colour""" + return "#{:06x}".format(random.randint(0, 0xFFFFFF)) + + # Store guildID's and modlog channel within a cached dictionary modlogs = {}