Skip to content

Commit

Permalink
Merge pull request #251 from DuckBoss/v4.0.0-testing
Browse files Browse the repository at this point in the history
V4.0.0 testing - bug fixes
  • Loading branch information
DuckBoss authored Jul 29, 2020
2 parents 25b3115 + 262df63 commit 5143bd8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
9 changes: 6 additions & 3 deletions JJMumbleBot/lib/pgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ def quick_gui(self, content, text_type="data", text_color=None, text_font=None,
self.display_box(channel=channel, user=user, ignore_whisper=ignore_whisper)
self.clear_display()

def quick_gui_img(self, directory, img_data, format_img=False, caption=None, caption_align='center', caption_font=None, bgcolor="black", channel=None, user=None, img_size=65536, cellspacing="5"):
def quick_gui_img(self, directory, img_data, format_img=False, caption=None, caption_align='center', caption_font=None, bgcolor=None, channel=None, user=None, img_size=65536, cellspacing="5"):
if self.box_open:
return False
if channel is None:
channel = runtime_utils.get_my_channel()

if bgcolor is None:
bgcolor = GS.cfg[C_PGUI_SETTINGS][P_CANVAS_IMG_BG_COL]
self.open_box(align='left', bgcolor=bgcolor, cellspacing=cellspacing)

if format_img:
Expand Down Expand Up @@ -94,13 +95,15 @@ def append_content(self, content):
self.content += content
return True

def make_content(self, text, text_type="data", text_color=None, text_font=None, text_align="center", bgcolor="black", image_bgcolor=None, image=False):
def make_content(self, text, text_type="data", text_color=None, text_font=None, text_align="center", bgcolor=None, image_bgcolor=None, image=False):
if not self.box_open:
return None
if image:
if image_bgcolor is None:
image_bgcolor = GS.cfg[C_PGUI_SETTINGS][P_CANVAS_IMG_BG_COL]
return PGUIHelper.img_content(text, text_align, image_bgcolor)
if bgcolor is None:
bgcolor = GS.cfg[C_PGUI_SETTINGS][P_CANVAS_BG_COL]
if text_color is None:
text_color = GS.cfg[C_PGUI_SETTINGS][P_CANVAS_TXT_COL]
if text_font is None:
Expand Down
2 changes: 1 addition & 1 deletion JJMumbleBot/plugins/core/core_commands/core_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def cmd_help(self, data):
log(INFO, f"Displayed help screen for {plugin_name} in the channel.", origin=L_COMMAND)

def cmd_setalias(self, data):
all_data = data.message.strip().split(' ', 3)
all_data = data.message.strip().split(' ', 2)
if len(all_data) < 3:
GS.gui_service.quick_gui(
f"Incorrect Formatting!<br>"
Expand Down
4 changes: 2 additions & 2 deletions JJMumbleBot/plugins/extensions/media/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<b>!ytsearch 'search_term'</b>: Searches youtube for a song/video.<br>
<b>!ytplay 'item_number' 'item_count'(optional)</b>: Plays the selected song from youtube.<br>
<b>!ytplaylist 'youtube_playlist'</b>: Adds the given youtube playlist to the queue.<br>
<b>!link 'youtube_link'</b>: Adds the given youtube link to the queue.<br>
<b>!linkfront 'youtube_link'</b>: Priority inserts the given link to the front of the queue.
<b>!link 'youtube/soundcloud_link'</b>: Adds the given youtube link to the queue.<br>
<b>!linkfront 'youtube/soundcloud_link'</b>: Priority inserts the given link to the front of the queue.
1 change: 1 addition & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

| Version | Supported |
| ------- | ------------------ |
| 4.0 | :white_check_mark: |
| 3.0 | :white_check_mark: |
| < 3.0 | :x: |

Expand Down

0 comments on commit 5143bd8

Please sign in to comment.