Skip to content

Commit

Permalink
remove unused option
Browse files Browse the repository at this point in the history
  • Loading branch information
TicClick committed Dec 15, 2020
1 parent 02c826e commit ecef921
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion config/config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ github:

discord:
token: "abc.def.ghi" # bot token from https://discord.com/developers/applications
owner_id: 12345
review_channel: 67890
review_role_id: 12345
store_in_pins: true
Expand Down
3 changes: 1 addition & 2 deletions librarian/discord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,12 @@ class Client(commands.Bot):

def __init__(
self, *args, github=None, storage=None, assignee_login=None, title_regex=None,
owner_id=None, review_channel=None, review_role_id=None, store_in_pins=False,
review_channel=None, review_role_id=None, store_in_pins=False,
**kwargs
):
self.github = github
self.storage = storage

self.owner_id = owner_id
self.review_channel = review_channel
self.review_role_id = review_role_id
self.title_regex = re.compile(title_regex)
Expand Down
1 change: 0 additions & 1 deletion librarian/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def configure_client(config):
client = discord.Client(
github=github_api,
storage=db,
owner_id=config["discord"]["owner_id"],
assignee_login=config["github"]["assignee_login"],
review_channel=config["discord"]["review_channel"],
review_role_id=config["discord"]["review_role_id"],
Expand Down

0 comments on commit ecef921

Please # to comment.