Skip to content

Commit

Permalink
- fix circular import
Browse files Browse the repository at this point in the history
- remove leftover vault stuff for now
  • Loading branch information
emberdex committed Oct 30, 2023
1 parent 959c466 commit b956e83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
20 changes: 0 additions & 20 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,5 @@ services:
source: ./db
target: /data/db

vault:
image: "hashicorp/vault:latest"
container_name: "harmony-vault"
restart: on-failure
ports:
- "8200:8200"
environment:
VAULT_ADDR: 'https://0.0.0.0:8200'
ADMIN_USERNAME: 'admin'
ADMIN_PASSWORD: 'ThisIsYourAdminPassword'
cap_add:
- IPC_LOCK
volumes:
- type: bind
source: ./vault
target: /data
command: /data/init.sh
networks:
- harmony

networks:
harmony:
8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import typing
import discord
import harmony_cogs
import harmony_ui.feedback

from loguru import logger
from discord.ext import commands
from harmony_ui.feedback import FeedbackItemView

harmony_management_role_id = config.get_configuration_key(
"discord.harmony_management_role_id",
Expand All @@ -27,7 +27,7 @@ def __init__(self) -> typing.NoReturn:
super().__init__(intents=intents, command_prefix="$")

async def setup_hook(self) -> typing.NoReturn:
self.add_view(harmony_ui.feedback.FeedbackItemView())
self.add_view(FeedbackItemView())

async def on_ready(self):
logger.info(f'Logged in as {self.user} (ID: {self.user.id})')
Expand Down Expand Up @@ -56,6 +56,7 @@ async def on_ready(self):

self.is_starting_up = False


bot = HarmonyBot()


Expand Down Expand Up @@ -192,4 +193,5 @@ async def manage_cogs(

await ctx.send(output_message, ephemeral=True)

bot.run(config.get_configuration_key("discord.bot_token", required=True))
if __name__ == "__main__":
bot.run(config.get_configuration_key("discord.bot_token", required=True))

0 comments on commit b956e83

Please sign in to comment.