Add configuration for plugins

This commit is contained in:
Tulir Asokan 2018-10-20 18:39:16 +03:00
parent ac5f059ef4
commit b29a7d186e
7 changed files with 57 additions and 9 deletions

View file

@ -16,10 +16,10 @@
import random
import string
from mautrix.util import BaseConfig
from mautrix.util import BaseFileConfig
class Config(BaseConfig):
class Config(BaseFileConfig):
@staticmethod
def _new_token() -> str:
return "".join(random.choice(string.ascii_lowercase + string.digits) for _ in range(64))