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

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonderfall committed Sep 22, 2020
1 parent 427e362 commit 7c8e652
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,13 +986,11 @@ async def get_available_category(match_round):
return category

else:
new_category = await guild.create_category(
return await guild.create_category(
name=desired_cat,
reason='Since no category was available, a new one was created'
reason='Since no category was available, a new one was created',
position=guild.get_channel(tournoi_cat_id).position + 1
)
# kwarg 'position' will be supported in next discord.py release, for now we have to edit
await new_category.edit(position = guild.get_channel(tournoi_cat_id).position + 1)
return new_category


### Lancer matchs ouverts
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ aiohttp[speedups]==3.6.*
APScheduler==3.6.*
apychal==1.9.*
Babel==2.8.*
discord.py==1.3.*
discord.py==1.4.*
python-dateutil==2.8.*
PyYAML==5.3.*

0 comments on commit 7c8e652

Please sign in to comment.