Skip to content

Commit

Permalink
only tag roster
Browse files Browse the repository at this point in the history
  • Loading branch information
Baviaan committed Jul 28, 2019
1 parent e33e263 commit 97be564
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions source/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
launch_on_boot = False

# print version number.
version = "v2.7.2"
version = "v2.7.3"
print("Running " + version)

# Get local timezone using mad hacks.
Expand Down Expand Up @@ -125,11 +125,12 @@ async def background_task():
raids.remove(raid)
print("Deleted old raid.")
else:
raid_start_msg = "Gondor calls for aid! "
for player in raid.assigned_players:
raid_start_msg = raid_start_msg + "<@{0}> ".format(player.id)
raid_start_msg = raid_start_msg + "will you answer the call? We are forming for the raid now."
await channel.send(raid_start_msg, delete_after=sleep_time * 2)
if raid.roster:
raid_start_msg = "Gondor calls for aid! "
for player in raid.assigned_players:
raid_start_msg = raid_start_msg + "<@{0}> ".format(player.id)
raid_start_msg = raid_start_msg + "will you answer the call? We are forming for the raid now."
await channel.send(raid_start_msg, delete_after=sleep_time * 2)
if counter >= save_time:
save(raids) # Save raids to file.
counter = 0 # Reset counter to 0.
Expand Down

0 comments on commit 97be564

Please sign in to comment.