Skip to content

Commit

Permalink
Merge branch 'release-1.12.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkress committed Jul 24, 2020
2 parents 293ecfe + ad30ef3 commit 2647dd4
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
uses: actions/setup-python@v2.1.1
with:
python-version: 2.7

Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.0
- uses: actions/setup-node@v2.1.1
with:
node-version: '12.x'

Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
uses: actions/setup-python@v2.1.1
with:
python-version: 2.7

Expand All @@ -97,7 +97,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
uses: actions/setup-python@v2.1.1
with:
python-version: 2.7

Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
name: Upload Python Package

on:
release:
types: [created]
push:
# Sequence of patterns matched against refs/tags
tags:
- '1.*'
- '2.*'

jobs:
deploy:
Expand All @@ -15,7 +18,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
uses: actions/setup-python@v2.1.1
with:
python-version: 2.7

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
uses: actions/setup-python@v2.1.1
with:
python-version: 2.7

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
uses: actions/setup-python@v2.1.1
with:
python-version: 2.7

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonsetup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
uses: actions/setup-python@v2.1.1
with:
python-version: 2.7

Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/SpunkyBot/spunkybot/compare/1.12.1...develop)
## [Unreleased](https://github.com/SpunkyBot/spunkybot/compare/1.12.2...develop)

## [1.12.1](https://github.com/SpunkyBot/spunkybot/compare/1.11.0...1.12.0) - 2020-07-17
## [1.12.2](https://github.com/SpunkyBot/spunkybot/compare/1.12.0...1.12.2) - 2020-07-24

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.1
1.12.2
4 changes: 2 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
spunkybot (1.12.1-1) unstable; urgency=medium
spunkybot (1.12.2-1) unstable; urgency=medium

* New upstream release.
- Full changelog on https://github.com/spunkybot/spunkybot/releases

-- Spunky Bot Release Manager <releases@spunkybot.de> Fri, 17 Jul 2020 18:56:14 +0200
-- Spunky Bot Release Manager <releases@spunkybot.de> Fri, 24 Jul 2020 17:31:08 +0200

spunkybot (1.12.0-1) unstable; urgency=medium

Expand Down
2 changes: 1 addition & 1 deletion doc/Commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
* Short: `!alias <name|id>`
* **bigtext** - display big message on screen
* Usage: `!bigtext <text>`
* **exit** - display last disconnected player
* **exit** - display last disconnected player of this match
* Usage: `!exit`
* **find** - display the slot number of a player
* Usage: `!find <name|id>`
Expand Down
10 changes: 8 additions & 2 deletions spunky.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
Modify the UrT server config as follows:
* seta g_logsync "1"
* seta g_loghits "1"
* seta g_friendlyfire "2"
Modify the files '/conf/settings.conf' and '/conf/rules.conf'
Run the bot: python spunky.py
"""

__version__ = '1.12.1'
__version__ = '1.12.2'


### IMPORTS
Expand Down Expand Up @@ -1870,8 +1871,9 @@ def handle_say(self, line):
else:
self.game.rcon_tell(sar['player_num'], COMMANDS['tell']['syntax'])

# exit - display last disconnected player of this match
elif sar['command'] == '!exit' and self.game.players[sar['player_num']].get_admin_role() >= COMMANDS['exit']['level']:
msg = "^3Last disconnected player: ^7%s" % self.last_disconnected_player.get_name() if self.last_disconnected_player else "^3No player left during this match"
msg = "^7Last disconnected player: ^3%s" % self.last_disconnected_player.get_name() if self.last_disconnected_player else "^3No player left during this match"
self.game.rcon_tell(sar['player_num'], msg)

# find - display the slot number of the player
Expand Down Expand Up @@ -4061,6 +4063,10 @@ def set_current_map(self):
if self.dynamic_mapcycle:
self.maplist = filter(None, (self.small_cycle if self.get_number_players() < self.switch_count else self.big_cycle))
logger.debug("Players online: %s / Mapcycle: %s", self.get_number_players(), self.maplist)
self.send_rcon("g_mapcycle dynamic.fake")
else:
if self.get_cvar('g_mapcycle') == "dynamic.fake":
self.send_rcon("g_mapcycle mapcycle.txt")

if self.maplist:
if self.mapname in self.maplist:
Expand Down

0 comments on commit 2647dd4

Please sign in to comment.