Increased Readability

pull/8/head
sgoudham 4 years ago
parent b1a29448d9
commit 473a1d2f1d

@ -3,9 +3,9 @@ import random
from discord import Colour from discord import Colour
# Defining a list of colours
import db import db
# Defining a list of colours
colors = { colors = {
'DEFAULT': 0x000000, 'DEFAULT': 0x000000,
'WHITE': 0xFFFFFF, 'WHITE': 0xFFFFFF,
@ -78,6 +78,8 @@ async def startup_cache_log():
cache_prefix(row[0], row[1]) cache_prefix(row[0], row[1])
# --------------------------------------------!ModLogs Section!---------------------------------------------------------
# Store guildID's and modlog channel within a cached dictionary # Store guildID's and modlog channel within a cached dictionary
modlogs = {} modlogs = {}
@ -140,6 +142,9 @@ def get_modlog_for_guild(guildid):
return channel return channel
# --------------------------------------------!End ModLogs Section!-----------------------------------------------------
# --------------------------------------------!Prefixes Section!--------------------------------------------------------
# Storing the prefixes and guildID's in the cache # Storing the prefixes and guildID's in the cache
cached_prefixes = {} cached_prefixes = {}
@ -185,6 +190,9 @@ def get_prefix_for_guild(guildid):
return "defaultPrefix" return "defaultPrefix"
# --------------------------------------------!End Prefixes Section!----------------------------------------------------
# --------------------------------------------!Cogs/Set Values Section!-------------------------------------------------
# Define repeated variables # Define repeated variables
hammyMention = '<@154840866496839680>' hammyMention = '<@154840866496839680>'
hammyID = 154840866496839680 hammyID = 154840866496839680
@ -215,3 +223,5 @@ def extensions():
# Run the async function to store everything in cache # Run the async function to store everything in cache
loop = asyncio.get_event_loop() loop = asyncio.get_event_loop()
loop.run_until_complete(startup_cache_log()) loop.run_until_complete(startup_cache_log())
# --------------------------------------------!End Cogs/Set Values Section!---------------------------------------------

Loading…
Cancel
Save