colour the join/leave embeds
All checks were successful
Build and Push Docker Image / build (push) Successful in 13s
All checks were successful
Build and Push Docker Image / build (push) Successful in 13s
This commit is contained in:
parent
80d7a35f46
commit
161d44a59d
@ -8,6 +8,7 @@ from os import getenv
|
||||
from pathlib import Path
|
||||
from datetime import datetime
|
||||
|
||||
from discord import Colour
|
||||
from discord.ext import commands, tasks
|
||||
|
||||
from utils.reader import LogFileReader
|
||||
@ -101,6 +102,7 @@ class PlayersCog(commands.Cog):
|
||||
|
||||
embed = await player.get_embed()
|
||||
embed.title = "Player Has Connected"
|
||||
embed.colour = Colour.brand_green()
|
||||
|
||||
await channel.send(embed=embed)
|
||||
|
||||
@ -127,6 +129,7 @@ class PlayersCog(commands.Cog):
|
||||
|
||||
embed = await player.get_embed()
|
||||
embed.title = "Player Has Disconnected"
|
||||
embed.colour = Colour.brand_red()
|
||||
|
||||
await channel.send(embed=embed)
|
||||
|
||||
|
Reference in New Issue
Block a user