Adding function to generate random hex colour

pull/8/head
sgoudham 4 years ago
parent d418b2170c
commit e8d69e92e9

@ -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 = {}

Loading…
Cancel
Save