lunarflu HF staff commited on
Commit
8279d6e
·
verified ·
1 Parent(s): 123b00d

added name, spacing, link to leaderboard, hugging emoji

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -75,6 +75,7 @@ async def on_ready():
75
  except Exception as e:
76
  print(f"on_message Error: {e}")
77
 
 
78
  def update_google_sheet():
79
  """save data from HF Space -> google sheets (makes 1 API call)"""
80
  # run this in separate thread?
@@ -246,9 +247,9 @@ async def add_exp(member_id):
246
  embed = Embed(color=Color.blue())
247
  embed.set_author(name=f"{member}", icon_url=member.avatar.url if member.avatar else bot.user.avatar.url)
248
  embed.title = f"Level Up! `{current_level-1}` -> `{current_level}`"
249
- msg = 'Congrats! You just leveled up in the Hugging Face Discord server'
250
  embed.description = f"{msg}."
251
- embed.add_field(name="Leaderboard Ranking:", value=f"👑**{rank}**", inline=True)
252
  # can use ^ to track changes in leaderboard ranking and display in levelup message when climbing
253
  # (green red arrow thingies)
254
  # could also pull ranks above and below yourself (if they exist, i.e.)
 
75
  except Exception as e:
76
  print(f"on_message Error: {e}")
77
 
78
+
79
  def update_google_sheet():
80
  """save data from HF Space -> google sheets (makes 1 API call)"""
81
  # run this in separate thread?
 
247
  embed = Embed(color=Color.blue())
248
  embed.set_author(name=f"{member}", icon_url=member.avatar.url if member.avatar else bot.user.avatar.url)
249
  embed.title = f"Level Up! `{current_level-1}` -> `{current_level}`"
250
+ msg = f'🤗 Congrats {member}! You just leveled up in the Hugging Face Discord server'
251
  embed.description = f"{msg}."
252
+ embed.add_field(name="Leaderboard Ranking:", value=f"👑 **{rank}**\nhttps://discord.com/channels/879548962464493619/1197143964994773023", inline=True)
253
  # can use ^ to track changes in leaderboard ranking and display in levelup message when climbing
254
  # (green red arrow thingies)
255
  # could also pull ranks above and below yourself (if they exist, i.e.)