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
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
when:
|
||||
- branch: main
|
||||
event: push
|
||||
|
||||
steps:
|
||||
- name: restart-bot
|
||||
@@ -18,10 +16,6 @@ steps:
|
||||
- /home/gary/Discord/Acrybot:/app # Maps named volume 'docker_compose_dir' to container path
|
||||
commands:
|
||||
- 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
|
||||
# Uncomment the line below if you use older Docker Compose (with a hyphen)
|
||||
# - docker-compose restart your_bot_service_name
|
||||
|
||||
@@ -50,9 +50,9 @@ class Buttons(discord.ui.View):
|
||||
|
||||
@tree.command(description="Lmao")
|
||||
async def test(interaction:discord.Interaction):
|
||||
print(f"{interaction.user} used command! Woohoo!")
|
||||
print(f"{interaction.user} used command! BAHHHH!")
|
||||
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:
|
||||
print("Uh oh! It failed!")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user