feature-header-gen #1
56
emoji_shortcodes.txt
Normal file
56
emoji_shortcodes.txt
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
: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: 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: texture
|
||||||
|
:grawlix_vertical: texture
|
||||||
|
:grawlix_wreck: texture colour blue
|
||||||
16
grawlix.py
16
grawlix.py
@ -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" /> ' 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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user