Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
small bugfixes for giveaway, removed db from repo
Browse files Browse the repository at this point in the history
  • Loading branch information
djetelina committed May 18, 2016
1 parent 60f829c commit ae5d42e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified cogs/db/stats.db
Binary file not shown.
6 changes: 3 additions & 3 deletions cogs/giveaway.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,15 @@ async def _confirm(self, ctx):
await self.bot.send_message(
giveaway.channel, "@here {0} just opened a giveaway for {1}. Type '!enroll {1}' to enroll".format(
giveaway.owner.mention, giveaway.game))
if giveaway.description:
if giveaway.desc:
await self.bot.send_message(giveaway.channel, "Description: {}".format(giveaway.description))
if giveaway.url:
await self.bot.send_message(giveaway.channel, giveaway.url)

@giveaway.command(name="cancel", pass_context=True, description=desc.cancelga, brief=desc.cancelgab)
async def _cancel(self, ctx, *, game: str):
async def _cancel(self, ctx):
for ga in giveawayslist:
if ga.game == game and ctx.message.author == ga.owner:
if ctx.message.author == ga.owner:
await ga.cancel()
await s.whisper(ga.owner, "Giveaway canceled", self.bot)

Expand Down

0 comments on commit ae5d42e

Please sign in to comment.