Skip to content

Commit

Permalink
Fix #30
Browse files Browse the repository at this point in the history
  • Loading branch information
double-fault committed Jul 27, 2019
1 parent ab8ba36 commit ad6f9e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ https://botpy.readthedocs.io/en/latest/

# Changelog

- **v0.7.10**: `post_global_message` now takes the `length_check` argument.
- **v0.7.9**: Add wrapper function to add background tasks.
- **v0.7.8**: Fix behavior for ChatExchange from PyPI; document same
- **v0.7.7**: Fix default callback from 0.7.6.
Expand Down
4 changes: 2 additions & 2 deletions Source/Bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,13 @@ def watch_rooms(self):
for each_room in self._rooms:
each_room.watch(self._handle_event)

def post_global_message(self, message):
def post_global_message(self, message, length_check=True):
"""
Posts the argument message across all rooms the bot is in.
"""
for id in self._ids:
room = self.get_room(id)
room.send_message(message)
room.send_message(message, length_check=length_check)

def add_privilege_type(self, privilege_level, privilege_name):
for each_room in self._rooms:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup (
name = "BotpySE",
packages = ["BotpySE"],
version = "0.7.9",
version = "0.7.10",
description = "A python framework to create chatbots on the StackExchange network.",
author = "Ashish Ahuja",
author_email = "[email protected]",
Expand Down

0 comments on commit ad6f9e8

Please sign in to comment.