Skip to content

Commit 2647dd4

Browse files
Merge branch 'release-1.12.2'
2 parents 293ecfe + ad30ef3 commit 2647dd4

10 files changed

Lines changed: 27 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414
- name: Set up Python 2.7
15-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v2.1.1
1616
with:
1717
python-version: 2.7
1818

@@ -46,7 +46,7 @@ jobs:
4646
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
4747
- name: Checkout
4848
uses: actions/checkout@v2
49-
- uses: actions/setup-node@v2.1.0
49+
- uses: actions/setup-node@v2.1.1
5050
with:
5151
node-version: '12.x'
5252

@@ -76,7 +76,7 @@ jobs:
7676
- name: Checkout
7777
uses: actions/checkout@v2
7878
- name: Set up Python 2.7
79-
uses: actions/setup-python@v2
79+
uses: actions/setup-python@v2.1.1
8080
with:
8181
python-version: 2.7
8282

@@ -97,7 +97,7 @@ jobs:
9797
- name: Checkout
9898
uses: actions/checkout@v2
9999
- name: Set up Python 2.7
100-
uses: actions/setup-python@v2
100+
uses: actions/setup-python@v2.1.1
101101
with:
102102
python-version: 2.7
103103

.github/workflows/pypi-publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
name: Upload Python Package
55

66
on:
7-
release:
8-
types: [created]
7+
push:
8+
# Sequence of patterns matched against refs/tags
9+
tags:
10+
- '1.*'
11+
- '2.*'
912

1013
jobs:
1114
deploy:
@@ -15,7 +18,7 @@ jobs:
1518
- name: Checkout
1619
uses: actions/checkout@v2
1720
- name: Set up Python 2.7
18-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v2.1.1
1922
with:
2023
python-version: 2.7
2124

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414
- name: Set up Python 2.7
15-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v2.1.1
1616
with:
1717
python-version: 2.7
1818

.github/workflows/pythonlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v2
1515
- name: Set up Python 2.7
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v2.1.1
1717
with:
1818
python-version: 2.7
1919

.github/workflows/pythonsetup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: Set up Python 2.7
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v2.1.1
1515
with:
1616
python-version: 2.7
1717

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

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

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

1212
### Fixed
1313

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.12.1
1+
1.12.2

debian/changelog

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
spunkybot (1.12.1-1) unstable; urgency=medium
1+
spunkybot (1.12.2-1) unstable; urgency=medium
22

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

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

88
spunkybot (1.12.0-1) unstable; urgency=medium
99

doc/Commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
* Short: `!alias <name|id>`
113113
* **bigtext** - display big message on screen
114114
* Usage: `!bigtext <text>`
115-
* **exit** - display last disconnected player
115+
* **exit** - display last disconnected player of this match
116116
* Usage: `!exit`
117117
* **find** - display the slot number of a player
118118
* Usage: `!find <name|id>`

spunky.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
Modify the UrT server config as follows:
1919
* seta g_logsync "1"
2020
* seta g_loghits "1"
21+
* seta g_friendlyfire "2"
2122
Modify the files '/conf/settings.conf' and '/conf/rules.conf'
2223
Run the bot: python spunky.py
2324
"""
2425

25-
__version__ = '1.12.1'
26+
__version__ = '1.12.2'
2627

2728

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

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

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

40654071
if self.maplist:
40664072
if self.mapname in self.maplist:

0 commit comments

Comments
 (0)