Spaces:
Runtime error
Runtime error
make ids bold
Browse files
bot.py
CHANGED
@@ -112,7 +112,7 @@ async def image(ctx, id):
|
|
112 |
embed.add_field(name="Proposed by", value=image_data['author'], inline=True)
|
113 |
path = f'https://gainforest-transparency-dashboard.s3.amazonaws.com/{image_data["awsCID"]}'
|
114 |
embed.set_image(url=path)
|
115 |
-
await ctx.respond(f"You are looking at Image ID {id}
|
116 |
|
117 |
def confAutocomplete(self: discord.AutocompleteContext):
|
118 |
return ['low', 'medium', 'high']
|
@@ -190,7 +190,7 @@ async def sound(ctx, id): # a slash command will be created with the name "ping"
|
|
190 |
embed.add_field(name="Proposed by", value=sound_data['author'], inline=True)
|
191 |
embed.add_field(name="Detected at Timestamp", value=sound_data['label_at'], inline=True)
|
192 |
|
193 |
-
await ctx.respond(f'Please listen to
|
194 |
|
195 |
@bot.command(
|
196 |
description="Label sound observation",
|
|
|
112 |
embed.add_field(name="Proposed by", value=image_data['author'], inline=True)
|
113 |
path = f'https://gainforest-transparency-dashboard.s3.amazonaws.com/{image_data["awsCID"]}'
|
114 |
embed.set_image(url=path)
|
115 |
+
await ctx.respond(f"You are looking at Image ID **{id}**\n!Hint: You can use [NParks Flora & Fauna Database](https://www.nparks.gov.sg/florafaunaweb), the [Singapore Bird List](https://singapore.biodiversity.online/) or to verify", embed=embed)
|
116 |
|
117 |
def confAutocomplete(self: discord.AutocompleteContext):
|
118 |
return ['low', 'medium', 'high']
|
|
|
190 |
embed.add_field(name="Proposed by", value=sound_data['author'], inline=True)
|
191 |
embed.add_field(name="Detected at Timestamp", value=sound_data['label_at'], inline=True)
|
192 |
|
193 |
+
await ctx.respond(f'Please listen to Sound ID **{id}** here:\nhttps://gainforest.app/observations/{sound_data["uuid"]} 🦜🎵', embed=embed)
|
194 |
|
195 |
@bot.command(
|
196 |
description="Label sound observation",
|