File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+
8
+ # v2.4.5
9
+
10
+ ### Fixed
11
+ Fixed activity setting due to flawed logic in ` config.get ` function.
12
+
7
13
# v2.4.4
8
14
### Fixed
9
15
Fixed a bug in activity command where it would fail to set the activity on bot restart if the activity type was ` playing `
Original file line number Diff line number Diff line change 22
22
SOFTWARE.
23
23
"""
24
24
25
- __version__ = '2.4.4 '
25
+ __version__ = '2.4.5 '
26
26
27
27
import asyncio
28
28
import textwrap
@@ -179,6 +179,7 @@ async def on_connect(self):
179
179
180
180
activity_type = self .config .get ('activity_type' )
181
181
message = self .config .get ('activity_message' )
182
+
182
183
if activity_type is not None and message :
183
184
url = self .config .get ('twitch_url' , 'https://www.twitch.tv/discord-modmail/' ) if activity_type == ActivityType .streaming else None
184
185
activity = discord .Activity (type = activity_type , name = message ,
Original file line number Diff line number Diff line change @@ -72,4 +72,4 @@ def __getitem__(self, key):
72
72
return self .cache [key ]
73
73
74
74
def get (self , value , default = None ):
75
- return self .cache .get (value ) or default
75
+ return self .cache .get (value , default )
You can’t perform that action at this time.
0 commit comments