Pass config along so that nominate can add to database with election cycle name.
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ def main(cfg: DakinyConfig):
|
||||
"""When Discord is connected"""
|
||||
assert bot.user is not None
|
||||
create_database # pylint: disable=pointless-statement
|
||||
bot.add_view(NominateView())
|
||||
bot.add_view(NominateView(cfg))
|
||||
print(f"{bot.user.name} has connected to Discord!")
|
||||
|
||||
# Run Discord bot
|
||||
|
||||
Reference in New Issue
Block a user