Fix fallback @everyone
This commit is contained in:
parent
9b2e2a444b
commit
43d207e845
3
main.py
3
main.py
|
@ -22,6 +22,7 @@ role_tags = {
|
||||||
'Taiyaki': [dango, windbeutel, cupcake, taiyaki],
|
'Taiyaki': [dango, windbeutel, cupcake, taiyaki],
|
||||||
'Erdnussbutterkeks': [dango, windbeutel, cupcake, taiyaki, cookie],
|
'Erdnussbutterkeks': [dango, windbeutel, cupcake, taiyaki, cookie],
|
||||||
}
|
}
|
||||||
|
everyone_mention = '<@&239093443505291274>'
|
||||||
campaign_id = '187753'
|
campaign_id = '187753'
|
||||||
|
|
||||||
class MyClient(discord.Client):
|
class MyClient(discord.Client):
|
||||||
|
@ -57,7 +58,7 @@ class PatreonPost():
|
||||||
|
|
||||||
|
|
||||||
def pings(self) -> str:
|
def pings(self) -> str:
|
||||||
return ' '.join([f'<@&{role}>' for role in role_tags[self.tags[0]]]) if len(self.tags) > 0 else '@everyone'
|
return ' '.join([f'<@&{role}>' for role in role_tags[self.tags[0]]]) if len(self.tags) > 0 else everyone_mention
|
||||||
|
|
||||||
|
|
||||||
def to_embed(self) -> discord.Embed:
|
def to_embed(self) -> discord.Embed:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user