mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-03 02:43:12 +00:00
28 lines
769 B
Python
28 lines
769 B
Python
|
import discord
|
||
|
|
||
|
from config.parser import JsonCache
|
||
|
import lib.formatter
|
||
|
|
||
|
resources = JsonCache.read_json("art")
|
||
|
exclam_icon = resources["icons"]["exclam"]
|
||
|
boost_icon = resources["icons"]["boost"]
|
||
|
|
||
|
|
||
|
class Boost:
|
||
|
@staticmethod
|
||
|
def message(member, template=None):
|
||
|
embed = discord.Embed(
|
||
|
color=discord.Color.embed_background(),
|
||
|
description=f"_ _\nThanks for boosting, **{member.name}**!!"
|
||
|
)
|
||
|
|
||
|
if template:
|
||
|
# REPLACE
|
||
|
embed.description = lib.formatter.template(template, member.name)
|
||
|
|
||
|
embed.set_thumbnail(url=boost_icon)
|
||
|
embed.set_footer(text=f"Total server boosts: {member.guild.premium_subscription_count}",
|
||
|
icon_url=exclam_icon)
|
||
|
|
||
|
return embed
|