old memed source
Find a file
Luna Mendes e017ff8b83 lol
2017-12-03 22:30:52 -03:00
bot thanks luna fix please 2017-12-04 00:08:55 +00:00
.gitignore accept custom sockfile 2017-12-03 01:55:40 -03:00
__init__.py add the bot 2017-12-01 22:04:35 -03:00
config.py lol 2017-12-03 22:30:52 -03:00
Makefile add the bot 2017-12-01 22:04:35 -03:00
memed.py reduce logging 2017-12-03 22:30:23 -03:00
README.md add README 2017-12-01 18:10:38 -03:00
requirements.txt add the bot 2017-12-01 22:04:35 -03:00
schema.sql initial commit 2017-12-01 18:02:23 -03:00

memed

MEMEwork Daemon

Core functions of memed:

  • Communicate with Discord
  • Logging what users do on our containers
  • Handling the rsudo command
  • Fucking over users by banning them

The protocol

connect to log.suck (unix domain socket).

how do send packet

[L][OP][data : str]

L = little endian encoding of an unsigned int
  Represents the data length

OP = little endian encoding of an int
  OP table soon

data = the data you're sending

give op codes

When connecting, you receive an OP 0 with `hello` as the data,
make sure you receive that before continuing.

the only OP code right now is OP 1, which receives a logline,
parses through it and logs it down to Postgres