Skip to content

Commit

Permalink
fix: more bugs with wrong naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Mar 2, 2024
1 parent 9092d88 commit 95b1973
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion OLD_CODE2/consoler/consoler.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def process_cli() -> SimpleNamespace:

actions_choices = root_parser.add_subparsers(
dest="command",
help="github.com/darklab8/fl-darkbot help",
help="darkbot help",
required=True,
)

Expand Down
2 changes: 1 addition & 1 deletion app/consoler/commands/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func CheckCommandAllowedToRun(cmd *cobra.Command, channels configurator.Configur
}

if !isChannelEnabled {
printer.Println(cmd, fmt.Sprintf("github.com/darklab8/fl-darkbot is not connected to this channel. Run `%s connect`", settings.Config.ConsolerPrefix))
printer.Println(cmd, fmt.Sprintf("darkbot is not connected to this channel. Run `%s connect`", settings.Config.ConsolerPrefix))
return false
}

Expand Down
2 changes: 1 addition & 1 deletion app/management/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "github.com/darklab8/fl-darkbot",
Use: "darkbot",
Short: "A brief description of your application",
// Uncomment the following line if your bare application
// has an action associated with it:
Expand Down
8 changes: 4 additions & 4 deletions infra/tf/modules/darkbot/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create a docker image resource
# -> docker pull nginx:latest
resource "docker_image" "github.com/darklab8/fl-darkbot" {
resource "docker_image" "darkbot" {
name = "darkwind8/darkbot:${var.tag_version}"
keep_locally = true
}
Expand Down Expand Up @@ -28,8 +28,8 @@ variable "secrets" {

# # Create a docker container resource
# # -> same as 'docker run --name nginx -p8080:80 -d nginx:latest'
resource "docker_container" "github.com/darklab8/fl-darkbot" {
name = "github.com/darklab8/fl-darkbot"
resource "docker_container" "darkbot" {
name = "darkbot"
image = docker_image.darkbot.image_id

env = [
Expand All @@ -41,7 +41,7 @@ resource "docker_container" "github.com/darklab8/fl-darkbot" {
"SCRAPPY_LOOP_DELAY=60",
"VIEWER_LOOP_DELAY=10",
"DEVENV_MOCK_API=false",
"github.com/darklab8/fl-darkbot_LOG_LEVEL=${var.debug ? "DEBUG" : "WARN"}"
"DARKBOT_LOG_LEVEL=${var.debug ? "DEBUG" : "WARN"}"
]

restart = "always"
Expand Down
2 changes: 1 addition & 1 deletion infra/tf/production/backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
bucket = "darklab-eu-west-1-global-terraform-state"
dynamodb_table = "darklab-eu-west-1-global-terraform-state"
encrypt = true
key = "github.com/darklab8/fl-darkbot.production.tfstate"
key = "darkbot.production.tfstate"
region = "eu-west-1"
}
}
4 changes: 2 additions & 2 deletions infra/tf/production/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ output "cluster_ip" {
value = module.stack.cluster_ip
}

data "aws_ssm_parameter" "github.com/darklab8/fl-darkbot" {
data "aws_ssm_parameter" "darkbot" {
name = "/terraform/hetzner/darkbot/production"
}

Expand All @@ -22,7 +22,7 @@ provider "docker" {
ssh_opts = ["-o", "StrictHostKeyChecking=no", "-o", "UserKnownHostsFile=/dev/null", "-i", "~/.ssh/id_rsa.darklab"]
}

module "github.com/darklab8/fl-darkbot" {
module "darkbot" {
source = "../modules/darkbot"
configurator_dbname = "production"
consoler_prefix = "."
Expand Down
2 changes: 1 addition & 1 deletion infra/tf/repo/backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
bucket = "darklab-eu-west-1-global-terraform-state"
dynamodb_table = "darklab-eu-west-1-global-terraform-state"
encrypt = true
key = "github.com/darklab8/fl-darkbot.repo.tfstate"
key = "darkbot.repo.tfstate"
region = "eu-west-1"
}
}

0 comments on commit 95b1973

Please sign in to comment.