From e3232d948eb78b9289420a2e1965af313a100d2a Mon Sep 17 00:00:00 2001 From: Mike Lynch Date: Sun, 2 Nov 2025 10:24:07 +1100 Subject: [PATCH 1/2] Added method to generate a header image --- emoji_shortcodes.txt | 56 ++++++++++++++++++++++++++++++++++++++++++++ grawlix.py | 16 +++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 emoji_shortcodes.txt diff --git a/emoji_shortcodes.txt b/emoji_shortcodes.txt new file mode 100644 index 0000000..4ef2c57 --- /dev/null +++ b/emoji_shortcodes.txt @@ -0,0 +1,56 @@ +:grawlix_angle: +:grawlix_ball1: +:grawlix_ball2: +:grawlix_brick: +:grawlix_bullseye: +:grawlix_bun: +:grawlix_claw: +:grawlix_cloud: +:grawlix_crosses: +:grawlix_crumple: +:grawlix_drop: +:grawlix_dust1: +:grawlix_dust2: +:grawlix_feather: +:grawlix_flower: +:grawlix_fruit: +:grawlix_fungus: +:grawlix_fur: +:grawlix_gadget: +:grawlix_globule: +:grawlix_glyph1: +:grawlix_glyph10: +:grawlix_glyph2: +:grawlix_glyph3: +:grawlix_glyph4: +:grawlix_glyph5: +:grawlix_glyph6: +:grawlix_glyph7: +:grawlix_glyph8: +:grawlix_glyph9: +:grawlix_growth: +:grawlix_hatch: +:grawlix_helm: +:grawlix_horizon: +:grawlix_joint: +:grawlix_knothole: +:grawlix_link: +:grawlix_lump: +:grawlix_mountain: +:grawlix_null: +:grawlix_orbit: +:grawlix_popup: +:grawlix_rects: +:grawlix_rough: +:grawlix_scales: +:grawlix_scrawl: +:grawlix_scribble: +:grawlix_shatter: +:grawlix_signal: +:grawlix_slump: +:grawlix_spark1: +:grawlix_spark2: +:grawlix_sprout: +:grawlix_strata: +:grawlix_vertical: +:grawlix_wreck: diff --git a/grawlix.py b/grawlix.py index 092c6b7..7b16361 100755 --- a/grawlix.py +++ b/grawlix.py @@ -1,4 +1,5 @@ import random +import sys from botclient.botclient import Bot GRAWLIX = [ @@ -16,6 +17,10 @@ GRID_TYPES = [ "latin_square", "concentric", "sator", "random", "vertical", "hor class Grawlix(Bot): + def __init__(self): + super().__init__() + self.ap.add_argument('-a', '--all', action='store_true', help="Dump a random grid of emojos") + def latin_square(self): return [ [ 2, 1, 0, 4, 3 ], @@ -91,10 +96,21 @@ class Grawlix(Bot): rows = [ self.render_row(r, glyphs) for r in grid ] return "\n".join(rows) + def header(self): + for r in range(20): + names = [ random.choice(GRAWLIX) for c in range(100) ] + files = [ f' ' for n in names ] + print(''.join(files)) + print('
') + + if __name__ == '__main__': g = Grawlix() g.configure() + if g.args.all: + g.header() + sys.exit(1) post = g.render() g.wait() g.post(post) -- 2.47.3 From c7ca2051d3787975bd70d8bd2e466eb552551d63 Mon Sep 17 00:00:00 2001 From: Mike Lynch Date: Sun, 2 Nov 2025 10:25:56 +1100 Subject: [PATCH 2/2] Added tags to emoji shortcodes --- emoji_shortcodes.txt | 104 +++++++++++++++++++++---------------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/emoji_shortcodes.txt b/emoji_shortcodes.txt index 4ef2c57..04dc6b7 100644 --- a/emoji_shortcodes.txt +++ b/emoji_shortcodes.txt @@ -1,56 +1,56 @@ -:grawlix_angle: -:grawlix_ball1: -:grawlix_ball2: -:grawlix_brick: -:grawlix_bullseye: -:grawlix_bun: -:grawlix_claw: +:grawlix_null: blank +:grawlix_angle: colour yellow +:grawlix_ball1: colour green +:grawlix_ball2: colour blue +:grawlix_brick: colour green +:grawlix_bullseye: colour +:grawlix_bun: colour yellow +:grawlix_claw: colour red :grawlix_cloud: -:grawlix_crosses: -:grawlix_crumple: -:grawlix_drop: -:grawlix_dust1: -:grawlix_dust2: -:grawlix_feather: -:grawlix_flower: -:grawlix_fruit: -:grawlix_fungus: -:grawlix_fur: -:grawlix_gadget: -:grawlix_globule: -:grawlix_glyph1: -:grawlix_glyph10: -:grawlix_glyph2: -:grawlix_glyph3: -:grawlix_glyph4: -:grawlix_glyph5: -:grawlix_glyph6: -:grawlix_glyph7: -:grawlix_glyph8: -:grawlix_glyph9: -:grawlix_growth: -:grawlix_hatch: -:grawlix_helm: -:grawlix_horizon: -:grawlix_joint: -:grawlix_knothole: -:grawlix_link: -:grawlix_lump: -:grawlix_mountain: -:grawlix_null: -:grawlix_orbit: -:grawlix_popup: -:grawlix_rects: -:grawlix_rough: -:grawlix_scales: -:grawlix_scrawl: -:grawlix_scribble: -:grawlix_shatter: -:grawlix_signal: -:grawlix_slump: +:grawlix_crosses: texture +:grawlix_crumple: texture +:grawlix_drop: colour purple +:grawlix_dust1: texture +:grawlix_dust2: texture +:grawlix_feather: colour green +:grawlix_flower: colour blue +:grawlix_fruit: colour green +:grawlix_fungus: colour yellow +:grawlix_fur: texture +:grawlix_gadget: colour red +:grawlix_globule: colour pink +:grawlix_glyph1: glyph +:grawlix_glyph10: glyph +:grawlix_glyph2: glyph +:grawlix_glyph3: glyph +:grawlix_glyph4: glyph +:grawlix_glyph5: glyph +:grawlix_glyph6: glyph +:grawlix_glyph7: glyph +:grawlix_glyph8: glyph +:grawlix_glyph9: glyph +:grawlix_growth: +:grawlix_hatch: texture +:grawlix_helm: colour red +:grawlix_horizon: colour pink +:grawlix_joint: texture +:grawlix_knothole: texture +:grawlix_link: colour trans +:grawlix_lump: colour yellow +:grawlix_mountain: colour blue +:grawlix_orbit: +:grawlix_popup: colour yellow +:grawlix_rects: colour trans +:grawlix_rough: colour texture pink +:grawlix_scales: colour texture red +:grawlix_scrawl: texture +:grawlix_scribble: colour texture green +:grawlix_shatter: colour texture +:grawlix_signal: colour +:grawlix_slump: colour texture green :grawlix_spark1: :grawlix_spark2: :grawlix_sprout: -:grawlix_strata: -:grawlix_vertical: -:grawlix_wreck: +:grawlix_strata: texture +:grawlix_vertical: texture +:grawlix_wreck: texture colour blue -- 2.47.3