Add some emojis/role reaction + template function which is adding reaction to a message without context

This commit is contained in:
Mylloon 2022-06-13 23:03:56 +02:00
parent 05b9e359c7
commit 8ce59cc541
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -19,20 +19,24 @@ class ConfrerieDuKassoulait(commands.Cog):
# Emoji(ID): RoleID # Emoji(ID): RoleID
# }} # }}
882785207235788800: { 882785207235788800: {
882783004706095194: 882616261626970112, # elephant - l1 "🟡": 882616261626970112, # l1
882783004697714789: 882616188830629998, # gorilla - l2 "🔵": 882616188830629998, # l2
882783004416675881: 882616082022670387, # cat - l3 "🟣": 882616082022670387, # l3
882783005108744202: 882616475918147654, # rabbit - visiteurs "🟠": 882616475918147654, # visiteurs
882783004911624212: 882616714133635093 # dog - alumni "🟢": 882616714133635093, # alumni
"💛": 882721538770624562, # référent l1
"💙": 882721619041198190, # référent l2
"💜": 882721700465246218 # référent l3
}, },
888001335105036329: { 888001335105036329: {
"1": 887999417892880474, # 1 - étudiant "1": 887999417892880474, # étudiant
"2": 887999473513549845 # 2 - professeur "2": 887999473513549845 # professeur
}, },
979497142085357568: { 979497142085357568: {
949037346207170571: 947652446497423382, # cartouche 949037346207170571: 947652446497423382, # cartouche
"🦝": 947650819078099006, # racoon "🦝": 947650819078099006, # racoon
"🎹": 979493581289042020 # musical_keyboard "🎹": 979493581289042020 # musical_keyboard
} }
} }
@ -159,3 +163,17 @@ class ConfrerieDuKassoulait(commands.Cog):
return return
except AttributeError: # reaction en DM except AttributeError: # reaction en DM
return return
""" @commands.command()
async def test(self, _):
# Test command to add some emojis to a message.
channel = self.client.get_channel(882785037236445245)
message = await channel.fetch_message(882785207235788800)
await message.add_reaction("🟡")
await message.add_reaction("🔵")
await message.add_reaction("🟣")
await message.add_reaction("🟠")
await message.add_reaction("🟢")
await message.add_reaction("💛")
await message.add_reaction("💙")
await message.add_reaction("💜") """