Updates and testing
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -3,11 +3,9 @@ type: docker # Essential for Docker execution
|
|||||||
|
|
||||||
name: restart-discord-bot
|
name: restart-discord-bot
|
||||||
|
|
||||||
trigger:
|
when:
|
||||||
branch:
|
- branch: main
|
||||||
- main
|
event: push
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: restart-bot
|
- name: restart-bot
|
||||||
@@ -18,10 +16,6 @@ steps:
|
|||||||
- /home/gary/Discord/Acrybot:/app # Maps named volume 'docker_compose_dir' to container path
|
- /home/gary/Discord/Acrybot:/app # Maps named volume 'docker_compose_dir' to container path
|
||||||
commands:
|
commands:
|
||||||
- cd /app
|
- cd /app
|
||||||
# Execute the Docker Compose command
|
|
||||||
# IMPORTANT: Replace 'your_bot_service_name' with your actual service name.
|
|
||||||
- ls
|
|
||||||
- pwd
|
|
||||||
- docker compose restart python-app
|
- docker compose restart python-app
|
||||||
# Uncomment the line below if you use older Docker Compose (with a hyphen)
|
# Uncomment the line below if you use older Docker Compose (with a hyphen)
|
||||||
# - docker-compose restart your_bot_service_name
|
# - docker-compose restart your_bot_service_name
|
||||||
|
|||||||
@@ -50,9 +50,9 @@ class Buttons(discord.ui.View):
|
|||||||
|
|
||||||
@tree.command(description="Lmao")
|
@tree.command(description="Lmao")
|
||||||
async def test(interaction:discord.Interaction):
|
async def test(interaction:discord.Interaction):
|
||||||
print(f"{interaction.user} used command! Woohoo!")
|
print(f"{interaction.user} used command! BAHHHH!")
|
||||||
try:
|
try:
|
||||||
await interaction.response.send_message("Pay $5 for a Mario Moment", view=Buttons())
|
await interaction.response.send_message("Pay $5 for a Mario CUMM", view=Buttons())
|
||||||
except discord.app_commands.errors.CommandInvokeError:
|
except discord.app_commands.errors.CommandInvokeError:
|
||||||
print("Uh oh! It failed!")
|
print("Uh oh! It failed!")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user