lunarflu HF staff commited on
Commit
ca9d9a8
·
verified ·
1 Parent(s): 97135d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -172,8 +172,9 @@ async def post_to_slack(author, content, channel, url, slack_mention, trigger):
172
 
173
 
174
  # runs discord bot in thread = helps avoid blocking calls
 
 
175
  def run_bot():
176
- bot.loop.create_task(collect_pings())
177
  bot.run(DISCORD_TOKEN)
178
  threading.Thread(target=run_bot).start()
179
  def greet(name):
 
172
 
173
 
174
  # runs discord bot in thread = helps avoid blocking calls
175
+ bot.loop.create_task(collect_pings())
176
+
177
  def run_bot():
 
178
  bot.run(DISCORD_TOKEN)
179
  threading.Thread(target=run_bot).start()
180
  def greet(name):