feature-header-gen #1

Merged
bombinans merged 2 commits from feature-header-gen into main 2025-11-01 23:28:08 +00:00
2 changed files with 72 additions and 0 deletions
Showing only changes of commit e3232d948e - Show all commits

56
emoji_shortcodes.txt Normal file
View File

@ -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:

View File

@ -1,4 +1,5 @@
import random import random
import sys
from botclient.botclient import Bot from botclient.botclient import Bot
GRAWLIX = [ GRAWLIX = [
@ -16,6 +17,10 @@ GRID_TYPES = [ "latin_square", "concentric", "sator", "random", "vertical", "hor
class Grawlix(Bot): 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): def latin_square(self):
return [ return [
[ 2, 1, 0, 4, 3 ], [ 2, 1, 0, 4, 3 ],
@ -91,10 +96,21 @@ class Grawlix(Bot):
rows = [ self.render_row(r, glyphs) for r in grid ] rows = [ self.render_row(r, glyphs) for r in grid ]
return "\n".join(rows) return "\n".join(rows)
def header(self):
for r in range(20):
names = [ random.choice(GRAWLIX) for c in range(100) ]
files = [ f'<img src="grawlix_{n}.png" />&nbsp;' for n in names ]
print(''.join(files))
print('<br />')
if __name__ == '__main__': if __name__ == '__main__':
g = Grawlix() g = Grawlix()
g.configure() g.configure()
if g.args.all:
g.header()
sys.exit(1)
post = g.render() post = g.render()
g.wait() g.wait()
g.post(post) g.post(post)