Compare commits

...

47 commits

Author SHA1 Message Date
43a01a753b
fix container registry
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-24 20:29:10 +01:00
2a46a54637
change container registry
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-12-24 20:27:54 +01:00
74fe90b242
update pipeline because of new docker compose
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-25 21:21:35 +01:00
f9c496d158
update pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-24 04:35:05 +02:00
e753423957
remove whitespace
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-29 23:04:57 +02:00
ee561c5356
reduce prune days to 7 2023-05-29 23:04:45 +02:00
4a029f3bcd
Update python Docker tag to v3.11.3
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
2023-04-06 01:07:49 +00:00
f6e2e961f1 Merge pull request 'Update dependency py-cord to v2.4.1' (#23) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #23
2023-03-21 00:07:07 +01:00
b5ec9bac92 Update dependency py-cord to v2.4.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-03-20 23:06:42 +00:00
a0aa24bb41
update README for gitea environment
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-13 22:19:42 +01:00
b2f1c795e6 Merge pull request 'Update dependency py-cord to v2.4.0' (#22) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #22
2023-02-11 15:15:45 +01:00
5fdf2b666c Update dependency py-cord to v2.4.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-02-11 13:16:49 +00:00
37c9f0376a Merge pull request 'Update dependency py-cord to v2.3.3' (#21) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #21
2023-02-11 13:22:44 +01:00
b4fbdc7628 Update dependency py-cord to v2.3.3
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-02-11 03:15:50 +00:00
749190bc61 Merge pull request 'Update python Docker tag to v3.11.2' (#20) from renovate/python-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #20
2023-02-09 10:44:20 +01:00
a34af09beb Update python Docker tag to v3.11.2
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-02-09 02:26:51 +00:00
81f84dddf4 Update dependency py-cord to v2.3.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-12-13 23:58:02 +00:00
7fa890eb28 Merge pull request 'Update dependency py-cord to v2.3.0' (#17) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #17
2022-12-13 23:42:38 +01:00
36b6077d02 Merge pull request 'Update python Docker tag to v3.11.1' (#18) from renovate/python-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #18
2022-12-13 23:42:23 +01:00
b4116bf6a0 Update python Docker tag to v3.11.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-12-08 05:05:20 +00:00
65a7e9048e Update dependency py-cord to v2.3.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-11-23 22:05:20 +00:00
498e23de92 Merge pull request 'Update dependency py-cord to v2.2.2' (#12) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #12
2022-10-14 22:29:39 +02:00
d91151f931 Update dependency py-cord to v2.2.2
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
2022-10-14 22:29:29 +02:00
e1d26c7bf9 Merge pull request 'Update python Docker tag to v3.10.8' (#13) from renovate/python-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #13
2022-10-14 22:29:13 +02:00
533e45acae Update python Docker tag to v3.10.8
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-10-14 01:27:51 +00:00
4abd730acb Merge pull request 'Update dependency py-cord to v2.2.1' (#11) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #11
2022-10-12 23:41:20 +02:00
7ec7376405 Update dependency py-cord to v2.2.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-10-06 02:12:42 +00:00
a29054e176 Merge pull request 'Update dependency py-cord to v2.2.0' (#10) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #10
2022-10-03 00:13:19 +02:00
c33714f2e7 Update dependency py-cord to v2.2.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-10-02 22:12:42 +00:00
fd7b680eb8
update base image
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing
2022-09-08 00:36:09 +02:00
7cd2883dc0
update base image
Some checks failed
continuous-integration/drone/push Build is failing
2022-09-08 00:32:14 +02:00
2cb6af2062
add architecture to Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-08 00:30:25 +02:00
34ad3b2d09 Merge pull request 'Update dependency py-cord to v2.1.3' (#8) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #8
2022-09-08 00:24:17 +02:00
7efe4b3c13 Update dependency py-cord to v2.1.3
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-09-07 14:18:18 +00:00
2be135ec7b Merge pull request 'Update dependency py-cord to v2.1.2' (#7) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #7
2022-09-07 15:53:08 +02:00
281ad8f957 Update dependency py-cord to v2.1.2
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-09-06 21:18:18 +00:00
314caeba44 Merge pull request 'Update dependency py-cord to v2.1.1' (#6) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #6
2022-08-26 05:39:45 +02:00
84b8379926 Update dependency py-cord to v2.1.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-08-25 22:18:18 +00:00
f70f101aa5 Merge pull request 'Update dependency py-cord to v2.1.0' (#5) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #5
2022-08-25 19:01:33 +02:00
1c09edb25b Update dependency py-cord to v2.1.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-08-25 16:18:18 +00:00
0c6f070d22 Merge pull request 'Update dependency py-cord to v2.0.1' (#4) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #4
2022-08-18 18:50:22 +02:00
faa702ce05 Update dependency py-cord to v2.0.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-08-16 21:18:17 +00:00
6b9bb07e73 Merge pull request 'Update dependency python to v3.10.6' (#2) from renovate/python-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #2
2022-08-05 08:09:48 +02:00
06f099ca18 Update dependency python to v3.10.6
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
2022-08-02 21:17:16 +00:00
0300720111
fix drone ci
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-21 17:42:08 +02:00
16eb5f4419 Merge pull request 'Update dependency py-cord to v2.0.0' (#1) from renovate/py-cord-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #1
2022-07-20 17:22:55 +02:00
cdc56b3cfd Update dependency py-cord to v2.0.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-07-09 00:17:41 +00:00
5 changed files with 34 additions and 47 deletions

View file

@ -4,52 +4,44 @@ steps:
- name: docker
image: plugins/docker
settings:
registry: git.ar21.de
username:
from_secret: DOCKER_USERNAME
from_secret: REGISTRY_USER
password:
from_secret: DOCKER_PASSWORD
repo: secondhemd/shbot
from_secret: REGISTRY_PASS
repo: git.ar21.de/secondhemd/shbot
tags: latest
when:
branch:
include:
- master
event:
include:
- push
- name: docker-build
image: plugins/docker
settings:
registry: git.ar21.de
username:
from_secret: DOCKER_USERNAME
from_secret: REGISTRY_USER
password:
from_secret: DOCKER_PASSWORD
repo: secondhemd/shbot
from_secret: REGISTRY_PASS
repo: git.ar21.de/secondhemd/shbot
tags: latest
dry_run: true
when:
branch:
exclude:
- master
event:
exclude:
- push
- name: dev docker
image: plugins/docker
settings:
registry: git.ar21.de
username:
from_secret: DOCKER_USERNAME
from_secret: REGISTRY_USER
password:
from_secret: DOCKER_PASSWORD
repo: secondhemd/shbot
from_secret: REGISTRY_PASS
repo: git.ar21.de/secondhemd/shbot
tags: dev
when:
branch:
include:
- dev
event:
include:
- push
- name: deploy
image: appleboy/drone-ssh
settings:
@ -61,14 +53,10 @@ steps:
port: 22
command_timeout: 2m
script:
- cd /root && docker-compose pull shbot && docker-compose up -d shbot
- cd /root && docker compose pull shbot && docker compose up -d shbot
when:
branch:
include:
- master
event:
include:
- push
- name: deploy dev
image: appleboy/drone-ssh
settings:
@ -80,11 +68,10 @@ steps:
port: 22
command_timeout: 2m
script:
- cd /root && docker-compose -f shbot-dev.yaml pull shbot-dev && docker-compose -f shbot-dev.yaml up -d shbot-dev
- cd /root && docker compose -f shbot-dev.yaml pull shbot-dev && docker compose -f shbot-dev.yaml up -d shbot-dev
when:
branch:
include:
- dev
when:
event:
include:
- push

View file

@ -1,4 +1,4 @@
FROM python:3.10.5-alpine3.15
FROM amd64/python:3.11.3-alpine3.16
WORKDIR ./
ARG PUID=1000

View file

@ -1,22 +1,22 @@
# SECOND BOT
[![pipeline status](https://git.cxservers.com/aaron-riedel/shbot/badges/master/pipeline.svg)](https://git.cxservers.com/aaron-riedel/shbot/-/commits/master)
[![Build Status](https://drone.ar21.de/api/badges/secondhemd/shbot/status.svg)](https://drone.ar21.de/secondhemd/shbot)
der Bot für den SecondHemd Discord
# Latest
## Build
```
docker build -t docker-registry.cxservers.com/aaron-riedel/shbot:latest .
docker build -t secondhemd/shbot:latest .
```
## Run
```
sudo docker run -e 'TOKEN=' -e 'PREFIX=$' -t docker-registry.cxservers.com/aaron-riedel/shbot:latest
sudo docker run -e 'TOKEN=' -e 'PREFIX=$' -t secondhemd/shbot:latest
```
## Docker compose
```
services:
bot:
image: docker-registry.cxservers.com/aaron-riedel/shbot:latest
image: secondhemd/shbot:latest
container_name: shbot
restart: unless-stopped
environment:
@ -27,17 +27,17 @@ services:
# Development
## Build
```
docker build -t docker-registry.cxservers.com/aaron-riedel/shbot:dev .
docker build -t secondhemd/shbot:dev .
```
## Run
```
sudo docker run -e 'TOKEN=' -e 'PREFIX=$' -t docker-registry.cxservers.com/aaron-riedel/shbot:dev
sudo docker run -e 'TOKEN=' -e 'PREFIX=$' -t secondhemd/shbot:dev
```
## Docker compose
```
services:
bot:
image: docker-registry.cxservers.com/aaron-riedel/shbot:dev
image: secondhemd/shbot:dev
container_name: shbot
restart: unless-stopped
environment:

6
bot.py
View file

@ -414,7 +414,7 @@ async def hiebe(ctx, *, arg):
await user.create_dm()
await user.dm_channel.send("HIEBE :punch: von {}".format(ctx.author.display_name))
@bot.command(help="kickt Member ohne Rolle, die 30 Tage nicht online waren", usage="")
@bot.command(help="kickt Member ohne Rolle, die 7 Tage nicht online waren", usage="")
@is_admin()
async def prune(ctx):
await ctx.message.delete()
@ -427,8 +427,8 @@ async def prune(ctx):
await ctx.send(content="Zeit ausgelaufen", delete_after=5.0)
elif view.value:
await question.delete()
deleted = await ctx.guild.prune_members(days=30)
await ctx.send(content='Ich habe {} Leichen beseitigt.'.format(deleted), delete_after=5.0)
deleted = await ctx.guild.prune_members(days=7)
await ctx.send(content='Ich habe {} Leiche(n) beseitigt.'.format(deleted), delete_after=5.0)
else:
await question.delete()

View file

@ -1 +1 @@
py-cord==2.0.0rc1
py-cord==2.4.1