Skip to content

Instantly share code, notes, and snippets.

@myazakky
Created August 10, 2021 18:47
Show Gist options
  • Save myazakky/253bfd55d4ff2fbfd08a6d1b8dadd9cb to your computer and use it in GitHub Desktop.
Save myazakky/253bfd55d4ff2fbfd08a6d1b8dadd9cb to your computer and use it in GitHub Desktop.
import net, os, random
const lain_ascii_art = """
_..--¯¯¯¯--.._
,-'' `-.
,' `.
, \
/ \
/ ′. \
' / ││ ;
; n /│ │/ │ │
│ / v /\/`-'v√\'.│\ ,
: /v`,——— ————.^. ;
' │ /′@@`, ,@@ `\│ ;
│ n│ '.@@/ \@@ /│\ │;
` │ ` ¯¯¯ ¯¯¯ │ \/││
\ \ \ │ /\/
'; `-\ `′ /│/ │′
` \ — /│ │
` `. .' │ │
v,_ `;._ _.-; │ /
`'`\│-_`'-''__/^'^' │ │
¯¯¯¯¯ │ │
____ ____ ____ ____ │ /
||l |||a |||i |||n || ││
||__|||__|||__|||__|| ││
|/__\|/__\|/__\|/__\| │,
"""
const miku_ascii_art = """
   _    _
   //>――//\
  / ̄   < <⌒\>
`///|   \\i ヽ
/ / / | |\  |匸| |
レイ /ー| |ーヽ |ヨ| |
||/|テヘヽ|/テヘ| |_/| |
|| |Oソ  ヒOソ| | /| |
|| ハ `_  ハノ/ | |
|ヽFO>ー-∠/ハ( | |
| |/|∧ / / ヽ | |
| |/ 只\∧01| | |
| /( ||_ L_| | |
| |||| ̄/ L| | |
| |/ || | | | |
"""
const messages = [
"Lainは遍在する\n",
"Sereal Experiments Lain.\n",
"Present Day, heh... Present Time!\n",
"君が伝えたいことは 君が届けたいことは たくさんの点は線になって 遠く彼方へと響く\n",
"忘れないでね,わたしの声を\n",
"ずっと詩を音を綴って 遠く刻み続けている\n",
lain_ascii_art,
miku_ascii_art
]
var socket = newSocket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)
socket.setSockOpt(OptBroadcast, true)
while true:
sleep(rand(100..5000))
socket.sendTo("10.255.255.255", Port(39390), messages.sample)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment