Skip to content

Commit

Permalink
changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak5598 committed Jun 15, 2024
1 parent 030315e commit acd24bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/sammich/plugins/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@


class ProjectPlugin(MachineBasePlugin):
def __init__(self, client: SlackClient, settings: CaseInsensitiveDict, storage: PluginStorage):
def __init__(
self, client: SlackClient, settings: CaseInsensitiveDict, storage: PluginStorage
):
super().__init__(client, settings, storage)
with open("data/projects.json") as f:
self.project_data = json.load(f)
Expand Down
8 changes: 4 additions & 4 deletions src/sammich/plugins/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@


class RepoPlugin(MachineBasePlugin):
def __init__(self, client: SlackClient, settings: CaseInsensitiveDict, storage: PluginStorage):
def __init__(
self, client: SlackClient, settings: CaseInsensitiveDict, storage: PluginStorage
):
super().__init__(client, settings, storage)
with open("data/repos.json") as f:
self.repo_data = json.load(f)
Expand All @@ -22,9 +24,7 @@ async def repo(self, command):
repos = self.repo_data.get(tech_name)
if repos:
repos_list = "\n".join(repos)
message = (
f"Hello, you can implement your '{tech_name}' knowledge here:\n{repos_list}"
)
message = f"Hello, you can implement your '{tech_name}' knowledge here:\n{repos_list}"
await command.say(message)
else:
fallback_message = "Available technologies:"
Expand Down

0 comments on commit acd24bc

Please sign in to comment.