Skip to content
Permalink
Browse files
Added devops work item 35
  • Loading branch information
masudm6 committed Nov 19, 2020
1 parent 85cec4f commit 590901272a52c6b5b44143f3b6c5d5781a21ea8e
Showing 1 changed file with 2 additions and 0 deletions.
@@ -126,6 +126,8 @@ async def on_message(message): #checks for a message
if "salt " == (message.content.lower())[:5]: # checks if the input matches "salt "
communityName = (message.content)[5:] # saves the rest of the input as communityName

await message.add_reaction("🆗") # devops work item 35

if communityName.upper() in polls.values(): # if there is a poll active already
pollID = list(polls.keys())[list(polls.values()).index(communityName.upper())] # get the ID of the poll
await message.channel.send(f'The community: {communityName} already has a poll active. Poll ID:{pollID}.') # message to discord

0 comments on commit 5909012

Please sign in to comment.