Fix messages being sent as notices instead of public by default
- Changed new player default 'notices' setting from True to False - Added specific message types for duck_miss and wild_shot events - Added duck_miss and wild_shot to force_public config settings - All miss/wild shot messages now go to public channel by default - Legacy users with notices=True will still get notices, but new users get public messages
This commit is contained in:
@@ -21,6 +21,8 @@
|
|||||||
"duck_spawn": true,
|
"duck_spawn": true,
|
||||||
"duck_shot": true,
|
"duck_shot": true,
|
||||||
"duck_befriend": true,
|
"duck_befriend": true,
|
||||||
|
"duck_miss": true,
|
||||||
|
"wild_shot": true,
|
||||||
"leaderboard": true,
|
"leaderboard": true,
|
||||||
"admin_commands": true
|
"admin_commands": true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -656,7 +656,7 @@ class SimpleIRCBot:
|
|||||||
'explosive_ammo': False,
|
'explosive_ammo': False,
|
||||||
'settings': {
|
'settings': {
|
||||||
'output_mode': self.get_config('message_output.default_user_mode', 'PUBLIC'),
|
'output_mode': self.get_config('message_output.default_user_mode', 'PUBLIC'),
|
||||||
'notices': True, # Legacy setting for backwards compatibility
|
'notices': False, # Legacy setting for backwards compatibility - False means public
|
||||||
'private_messages': False
|
'private_messages': False
|
||||||
},
|
},
|
||||||
# Inventory system
|
# Inventory system
|
||||||
@@ -1000,7 +1000,7 @@ class SimpleIRCBot:
|
|||||||
await self.scare_duck_on_miss(channel, target_duck)
|
await self.scare_duck_on_miss(channel, target_duck)
|
||||||
|
|
||||||
miss_sound = "•click•" if player.get('silencer', 0) > 0 else "*CLICK*"
|
miss_sound = "•click•" if player.get('silencer', 0) > 0 else "*CLICK*"
|
||||||
await self.send_user_message(nick, channel, f"{nick} > {miss_sound} You missed the duck! | {miss_penalty} xp{ricochet_msg}")
|
await self.send_user_message(nick, channel, f"{nick} > {miss_sound} You missed the duck! | {miss_penalty} xp{ricochet_msg}", 'duck_miss')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# No duck present - wild fire!
|
# No duck present - wild fire!
|
||||||
@@ -1044,7 +1044,7 @@ class SimpleIRCBot:
|
|||||||
if player.get('silencer', 0) > 0:
|
if player.get('silencer', 0) > 0:
|
||||||
wild_sound = "•" + wild_sound[1:-1] + "•"
|
wild_sound = "•" + wild_sound[1:-1] + "•"
|
||||||
|
|
||||||
await self.send_user_message(nick, channel, f"{nick} > {wild_sound} You shot at nothing! What were you aiming at? | {miss_penalty+wild_penalty} xp | GUN CONFISCATED{friendly_fire_msg}")
|
await self.send_user_message(nick, channel, f"{nick} > {wild_sound} You shot at nothing! What were you aiming at? | {miss_penalty+wild_penalty} xp | GUN CONFISCATED{friendly_fire_msg}", 'wild_shot')
|
||||||
|
|
||||||
# Save after each shot
|
# Save after each shot
|
||||||
self.save_player(user)
|
self.save_player(user)
|
||||||
|
|||||||
Reference in New Issue
Block a user