mirror of
https://github.com/alterware/aw-bot.git
synced 2025-12-11 12:07:50 +00:00
chore: better log string
This commit is contained in:
8
.github/workflows/docker-publish.yml
vendored
8
.github/workflows/docker-publish.yml
vendored
@@ -19,16 +19,16 @@ jobs:
|
|||||||
lfs: true
|
lfs: true
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3.10.0
|
uses: docker/setup-buildx-action@v3.11.1
|
||||||
|
|
||||||
- name: Log in to DockerHub
|
- name: Log in to DockerHub
|
||||||
uses: docker/login-action@v3.3.0
|
uses: docker/login-action@v3.6.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USER }}
|
username: ${{ secrets.DOCKERHUB_USER }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- id: meta
|
- id: meta
|
||||||
uses: docker/metadata-action@v5.7.0
|
uses: docker/metadata-action@v5.10.0
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
alterware/aw-bot
|
alterware/aw-bot
|
||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
uses: docker/build-push-action@v6.15.0
|
uses: docker/build-push-action@v6.18.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ async def setup(bot):
|
|||||||
):
|
):
|
||||||
"""Slash command to add a new message pattern to the database."""
|
"""Slash command to add a new message pattern to the database."""
|
||||||
add_meme_pattern(regex, response)
|
add_meme_pattern(regex, response)
|
||||||
logger.info(f"Pattern added in memory: {regex}")
|
logger.info("Saved a new meme pattern: %s", regex)
|
||||||
await interaction.response.send_message(
|
await interaction.response.send_message(
|
||||||
f"Pattern added!\n**Regex:** `{regex}`\n**Response:** `{response}`"
|
f"Pattern added!\n**Regex:** `{regex}`\n**Response:** `{response}`"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user