# Path: halibot/jsdict.py
# class jsdict(dict):
# 	def __getattr__(self, name):
# 		return self[name]
# 
# 	def __setattr__(self, name, value):
# 		self[name] = value


import logging
import uuid
from .jsdict import jsdict

class MalformedMsgException(Exception): 'Bad message object'

class Message():

	def __init__(self, **kwargs):
		self.log = logging.getLogger(self.__class__.__name__)
		self.uuid = uuid.uuid4()
		self.sync = False

		self.body = kwargs.get('body', None)
		self.type = kwargs.get('type', 'simple')
		self.author = kwargs.get('author', None)
		self.identity = kwargs.get('identity', None)
		self.origin = kwargs.get('origin', None)

# Path: halibot/jsdict.py
# class jsdict(dict):
# 	def __getattr__(self, name):
# 		return self[name]
# 
# 	def __setattr__(self, name, value):
# 		self[name] = value


# Path: halibot/message.py
import logging
import uuid
from .jsdict import jsdict


class MalformedMsgException(Exception): 'Bad message object'

class Message():

	def __init__(self, **kwargs):
		self.log = logging.getLogger(self.__class__.__name__)
		self.uuid = uuid.uuid4()
		self.sync = False

		self.body = kwargs.get('body', None)
		self.type = kwargs.get('type', 'simple')
		self.author = kwargs.get('author', None)
		self.identity = kwargs.get('identity', None)
		self.origin = kwargs.get('origin', None)

		self.misc = kwargs.get('misc', jsdict())