Compare commits
2 commits
9e18b3a0be
...
6e35a7c32b
Author | SHA1 | Date | |
---|---|---|---|
6e35a7c32b | |||
a1c188d1b6 |
2 changed files with 36 additions and 1 deletions
35
.drone.yml
35
.drone.yml
|
@ -34,4 +34,39 @@ steps:
|
|||
event:
|
||||
exclude:
|
||||
- push
|
||||
- name: dev docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: DOCKER_USERNAME
|
||||
password:
|
||||
from_secret: DOCKER_PASSWORD
|
||||
repo: secondhemd/shbot
|
||||
tags: dev
|
||||
when:
|
||||
branch:
|
||||
include:
|
||||
- dev
|
||||
event:
|
||||
include:
|
||||
- push
|
||||
- name: deploy
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
- s.ar21.de
|
||||
username: root
|
||||
key:
|
||||
from_secret: DEPLOY_SSH_KEY
|
||||
port: 22
|
||||
command_timeout: 2m
|
||||
script:
|
||||
- cd /root && docker-compose pull shbot && docker-compose up -d shbot
|
||||
when:
|
||||
branch:
|
||||
include:
|
||||
- master
|
||||
event:
|
||||
include:
|
||||
- push
|
||||
# test
|
2
bot.py
2
bot.py
|
@ -73,7 +73,7 @@ async def on_command_error(ctx, error):
|
|||
@bot.event
|
||||
async def on_ready():
|
||||
print("Bot ready on Version %s..." % discord.__version__)
|
||||
activity = discord.Activity(name='%shelp' % prefix, type=discord.ActivityType.listening)
|
||||
activity = discord.Activity(name='%shund' % prefix, type=discord.ActivityType.listening)
|
||||
#activity = discord.Game('%shelp for Help' % prefix)
|
||||
await bot.change_presence(status=discord.Status.online, activity=activity)
|
||||
|
||||
|
|
Loading…
Reference in a new issue