Skip to content

Commit

Permalink
Tweak messages
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfspencer committed Sep 19, 2019
1 parent a66afe9 commit ccfec15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions foodflex/util/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,20 @@ async def automatic(ctx):

@bot.command(description='Start submissions period')
async def submit(ctx):
await ctx.send('Manually switched to \'submissions\' mode')
data.change_period('submissions', manual_change=True)
await submissions.submission_period()
await ctx.send('Manually switched to \'submissions\' mode')


@bot.command(description='Start voting period')
async def vote(ctx):
await ctx.send('Manually switched to \'voting\' mode')
data.change_period('voting', manual_change=True)
await voting.voting_period()
await ctx.send('Manually switched to \'voting\' mode')


@bot.command(description='Start results period')
async def result(ctx):
await ctx.send('Manually switched to \'results\' mode')
data.change_period('results', manual_change=True)
await results.results_period()
await ctx.send('Manually switched to \'results\' mode')
2 changes: 1 addition & 1 deletion foodflex/util/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def change_period(new_period, manual_change=False):
else:
mode = 'automatic'

logger.info(f'Change from \'{period}\' to \'{new_period}\' ({mode})')
logger.info(f'Period \'{period}\' -> \'{new_period}\' ({mode})')

period = new_period
save_state()
Expand Down

0 comments on commit ccfec15

Please sign in to comment.