Skip to content

Commit fb2ce7a

Browse files
committed
Merge branch 'edge' of https://github.com/Devanshu19/YourAnimeBot into edge
2 parents 35b9635 + 9179906 commit fb2ce7a

File tree

2 files changed

+47
-7
lines changed

2 files changed

+47
-7
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "edge" ]
6+
7+
jobs:
8+
9+
build-and-run:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Login to Docker Hub
17+
uses: docker/login-action@v2
18+
with:
19+
username: staticaron
20+
password: ${{ secrets.DOCKER_PASSWORD }}
21+
22+
- name: Build the Docker image
23+
run: docker build -t staticaron/yui-bot:latest .
24+
25+
- name: Push the Image
26+
run: docker push staticaron/yui-bot:latest
27+
28+
- name: Set up SSH private key
29+
uses: webfactory/ssh-agent@v0.5.3
30+
with:
31+
ssh-private-key: ${{ secrets.VPS_PRIVATE_KEY }}
32+
33+
- name: Log into the VPS
34+
uses: appleboy/ssh-action@master
35+
with:
36+
host: ${{ secrets.VPS_HOST }}
37+
username: ${{ secrets.VPS_USERNAME }}
38+
key: ${{ secrets.VPS_PRIVATE_KEY }}
39+
port: 22
40+
script: |
41+
docker pull docker.io/staticaron/yui-bot:latest
42+
43+
docker stop yui-bot || true
44+
docker rm yui-bot || true
45+
46+
docker run -d --env-file /root/yuibot/.env --name yui-bot --restart always docker.io/staticaron/yui-bot:latest

cogs/presence_cycle.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ class Presence(commands.Cog):
1010
bot: commands.Bot = None
1111

1212
activity = cycle([
13-
Activity(name="K-On! Live House", type=ActivityType.watching, status=Status.online),
14-
Activity(name="Laid Back Camp!", type=ActivityType.watching, status=Status.online),
15-
Activity(name="K-On! The Movie", type=ActivityType.watching, status=Status.online),
16-
Activity(name="Tsuredure Children", type=ActivityType.watching, status=Status.online),
17-
Activity(name="K-On! Season 2", type=ActivityType.watching, status=Status.online),
18-
Activity(name="Kakushigoto", type=ActivityType.watching, status=Status.online),
19-
Activity(name="K-On!", type=ActivityType.watching, status=Status.online),
13+
Activity(name="you!", type=ActivityType.watching, status=Status.online),
2014
])
2115

2216
def __init__(self, bot) -> None:

0 commit comments

Comments
 (0)